/* =========================================================
   321 Kimchi — custom styles
   Tokens live here; Tailwind handles spacing/layout utilities.
   ========================================================= */

:root {
  /* Brand: 3 colors only — kimchi red, celadon, ink. Everything else is neutral. */
  --ink: #141414;
  --paper: #ffffff;
  --muted: #5E5E5E;
  --line: #E6E6E6;
  --alt: #F4F1EA;

  --red: #E3221B;       /* kimchi red: big moments only (hero loop, numbers block, CTAs, talk bar) */
  --red-dark: #C01A14;  /* hover state of red */
  --celadon: #1F8A78;   /* Goryeo celadon: small counterpoint (selected states, camera eyes) */

  --font-display: 'Figtree', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }
html[lang="ko"] body { word-break: keep-all; }
::selection { background: var(--celadon); color: #fff; }

.font-display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.035em; }
html[lang="ko"] .font-display { font-weight: 800; letter-spacing: -0.03em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; border-radius: 6px; }

/* ---------- Language crossfade ---------- */
[data-i18n], [data-i18n-html] { transition: opacity .16s ease; }
.lang-fading [data-i18n], .lang-fading [data-i18n-html], .lang-fading #work-grid, .lang-fading #work-filters { opacity: 0; }

/* ---------- Eyebrow & link label ---------- */
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.link-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.link-label svg { width: 26px; height: 26px; transition: transform .3s var(--ease); }
.link-label b { font-weight: 900; }
.link-label:hover svg { transform: rotate(-8deg) scale(1.08); }
.link-label:hover b { color: var(--red); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #C01A14; box-shadow: 0 6px 20px -8px rgba(255,106,1,.7); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.play-dot { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Navbar ---------- */
.nav { transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }

.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang-toggle button { height: 30px; min-width: 38px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .08em; transition: background .2s, color .2s; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.menu-btn { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-weight: 800; font-size: 18px; }

/* ---------- Hero ---------- */
.logo-mark { transition: transform .5s var(--ease); }
.logo-mark:hover { transform: rotate(-3deg) scale(1.03); }
.scroll-line { width: 1px; height: 96px; background-image: linear-gradient(var(--ink) 50%, transparent 50%); background-size: 1px 6px; opacity: .35; }

/* ---------- Footage bands (Sandwich-style) ---------- */
.band { position: relative; padding-bottom: 96px; }
.band-media { position: relative; height: clamp(260px, 50vw, 640px); overflow: hidden; }
.band-media-short { height: clamp(200px, 32vw, 420px); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-body { position: relative; }
.title-box {
  position: relative; display: inline-block; margin-top: -0.9em; margin-left: -16px;
  background: #fff; padding: .25em 16px 0 16px;
  font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.04; max-width: min(100%, 15ch);
}
@media (min-width: 768px) { .title-box { margin-left: -24px; padding-left: 24px; padding-right: 24px; max-width: 24ch; } }
html[lang="ko"] .title-box { max-width: min(100%, 13em); }

.section { padding: 112px 0; }
.section-alt { background: var(--alt); }
.section-title { font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.04; max-width: 18ch; }
html[lang="ko"] .section-title { max-width: 16em; }

/* Headlines end with a red period (eggiscoming-style). main.js wraps the final . ? ! in .dot */
.hl .dot { color: var(--red); display: inline-block; transform-origin: 50% 80%; }
.in .hl .dot, .hl.in .dot { animation: dotPop .6s var(--ease) .35s both; }
@keyframes dotPop { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- Placeholder "footage" (until real stills/video are added) ---------- */
.ph { background-color: #111; }
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph-hero, .ph-work, .ph-bilingual, .ph-card { background-size: 180% 180%; animation: drift 18s ease-in-out infinite alternate; }
.ph-hero { background-image: radial-gradient(60% 80% at 25% 35%, #4a4a4a 0, transparent 62%), radial-gradient(50% 75% at 78% 62%, #343434 0, transparent 62%), linear-gradient(120deg, #1c1c1c, #0c0c0c); }
.ph-work { background-image: radial-gradient(55% 90% at 72% 40%, #444 0, transparent 62%), radial-gradient(40% 70% at 22% 70%, #2e2e2e 0, transparent 60%), linear-gradient(120deg, #161616, #0c0c0c); }
.ph-bilingual { background-image: radial-gradient(55% 85% at 30% 40%, #474747 0, transparent 62%), radial-gradient(50% 80% at 75% 55%, #303030 0, transparent 62%), linear-gradient(120deg, #1a1a1a, #0c0c0c); }
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.ph-tag { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 4px; }
.band-media .ph-tag { bottom: auto; top: 12px; }

/* ---------- Client logos ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; padding: 0 8px; }
.logo-strip li { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.02em; color: #A3A3A3; transition: color .2s; }
.logo-strip li:hover { color: var(--ink); }
.logo-strip img { height: 26px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s; }
.logo-strip li:hover img { opacity: 1; }

/* ---------- Metrics ---------- */
.metrics { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .metrics { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; } .metric-lg { grid-row: span 2; } .metrics .metric:nth-child(4) { grid-column: 2 / span 2; } }
.metric { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 34px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.metric-lg { min-height: 220px; }
@media (min-width: 768px) { .metric-lg { min-height: 300px; } }
.metric-lg { background: #fff; }
.metric-num { font-family: var(--font-display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(2.4rem, 4.6vw, 4.25rem); line-height: 1; margin-top: 14px; white-space: nowrap; }
.metric-num-sm { font-size: clamp(2rem, 4vw, 2.75rem); }
.metric-num .arrow { display: inline-block; margin: 0 .18em; font-weight: 600; color: var(--muted); }
.metric-num .num-accent { color: var(--red); }
.metric-cap { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 34ch; }

/* ---------- Work ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 8px; }
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter[aria-selected="true"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--celadon); }
.filter .dot { width: 8px; height: 8px; border-radius: 50%; }

.work-grid { display: grid; grid-template-columns: 1fr; gap: 36px 20px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.card { text-align: left; display: block; width: 100%; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.card-media > .ph-card, .card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.card:hover .card-media > .ph-card, .card:hover .card-media > img { transform: scale(1.04); }
.card-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0); transition: background .3s; }
.card:hover .card-media::before { background: rgba(0,0,0,.25); }
.card-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.card-play::after { content: ""; margin-left: 4px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.card:hover .card-play, .card:focus-visible .card-play { transform: scale(1); opacity: 1; }
.badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #fff; background: var(--ink); }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 14px; }
.card-cap b { font-weight: 900; }
.card-cap .cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card.is-hidden { display: none; }
.card.enter { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: #fff; border-radius: 18px; padding: 30px 28px 32px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); }
.service-num { font-family: var(--font-display); font-weight: 900; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.service-title { margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.service-body { margin-top: 10px; color: var(--muted); line-height: 1.55; }
.service-list { margin-top: 18px; border-top: 1px solid var(--line); }
.service-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ---------- Bilingual edge ---------- */
.edge-grid { display: grid; gap: 34px 48px; }
@media (min-width: 768px) { .edge-grid { grid-template-columns: 1fr 1fr; } }
.edge { position: relative; padding-left: 26px; }
.edge-dot { position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.edge-title { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.edge-body { margin-top: 8px; color: var(--muted); line-height: 1.6; max-width: 46ch; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 36px; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--line); }
}
.step { position: relative; }
.step-dot { position: relative; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--alt); }
.step-num { margin-top: 22px; font-size: 12px; font-weight: 900; letter-spacing: .16em; color: var(--muted); }
.step-title { margin-top: 6px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.step-body { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Estimate form ---------- */
.estimate { max-width: 860px; }
.chip-group { margin-bottom: 30px; }
.chip-group legend { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -.01em; margin-bottom: 12px; }
.chip-group legend span { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .18s, color .18s, box-shadow .18s, transform .15s; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--celadon); }

.fields { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .fields { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 800; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 16px; background: var(--alt); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; }
.footer-cta { display: block; text-align: center; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; }
.footer-cta b { letter-spacing: -.035em; }
.footer-cta:hover b { color: var(--celadon); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer-links a { display: inline-block; padding: 5px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.footer-links a:hover { color: #fff; }
.social { width: 28px; height: 28px; color: #fff; transition: color .2s, transform .2s; }
.social:hover { color: var(--celadon); transform: translateY(-2px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); animation: fadeIn .25s ease both; }
.lightbox-panel { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; animation: popIn .35s var(--ease) both; }
.lightbox-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lightbox-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.85); padding: 24px; font-size: 14px; z-index: 2; }
.lightbox-info { padding: 26px 24px 30px; }
@media (min-width: 768px) { .lightbox-info { padding: 32px 36px 38px; } }
.lightbox-close { position: absolute; z-index: 3; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; font-size: 26px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.breakdown { display: grid; gap: 22px; }
@media (min-width: 768px) { .breakdown { grid-template-columns: repeat(3, 1fr); } }
.breakdown h4 { font-family: var(--font-display); font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.breakdown h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.breakdown p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
body.no-scroll { overflow: hidden; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: popIn .3s var(--ease) both; display: flex; gap: 10px; align-items: center; }
.toast[hidden] { display: none; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--celadon); flex: none; }
.toast.error::before { background: var(--red); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

html[lang="ko"] .eyebrow, html[lang="ko"] .link-label { letter-spacing: .06em; }

/* ---------- Hero: red loop ribbon + bracket headline + doodle ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero-loop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.hero-loop { animation: wipeLoop 1.6s cubic-bezier(.6,.05,.25,1) .15s both; }
.hero-loop path { fill: none; stroke: var(--red); stroke-width: clamp(24px, 4.6vw, 72px); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@keyframes wipeLoop { from { clip-path: inset(-30% 130% -30% -30%); } to { clip-path: inset(-30% -30% -30% -30%); } }
.band-media { z-index: 1; }
.band-body { z-index: 2; }

.hero-title { font-size: clamp(2.3rem, 7vw, 4.75rem); line-height: 1.06; }
.h-cam { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; margin: 0 .04em; transform: rotate(-10deg); animation: camBob 2.8s ease-in-out infinite; }
.h-cam svg { width: 100%; height: 100%; }
@keyframes camBob { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-.06em); } }

.logo-wrap { position: relative; display: inline-block; }
.logo-ko { display: none; }
html[lang="ko"] .logo-en { display: none; }
html[lang="ko"] .logo-ko { display: inline; }

/* ---------- Red moments ---------- */
.section-red { background: var(--red); color: #fff; }
.section-red .eyebrow { color: rgba(255,255,255,.85); }
.section-red .metric .eyebrow { color: var(--muted); }
.section-red .hl .dot { color: var(--ink); }
.section-red .metric { border-color: transparent; color: var(--ink); }

.talk-bar { display: block; background: var(--red); color: #fff; padding: 30px 0; font-size: clamp(1.5rem, 4.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.02em; transition: background .25s; }
.talk-bar b { letter-spacing: -.035em; }
.talk-q { font-weight: 400; }
.talk-arrow { font-size: 1.1em; transition: transform .3s var(--ease); }
.talk-bar:hover { background: var(--red-dark); }
.talk-bar:hover .talk-arrow { transform: translateX(8px); }

@media (prefers-reduced-motion: reduce) {
  .hero-loop { animation: none; }
  .h-cam { animation: none; }
}
@media (max-width: 767px) { .hero-loop { left: -9%; width: 118%; height: 106%; } }

/* ---------- 321 Kimchi logo: hand counts 3, 2, 1, then the pop lines burst ---------- */
.brand-word { font-family: 'Fredoka', 'Jua', sans-serif; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
html[lang="ko"] .brand-word { font-family: 'Fredoka', 'Jua', sans-serif; }
.brand-word::after { content: "!"; color: var(--red); }
.nav-avatar { width: 36px; height: 36px; flex: none; transition: transform .3s var(--ease); }
a:hover > .nav-avatar { transform: rotate(-10deg); }
.logo-mark { width: min(340px, 74vw); overflow: visible; }
.hand-f { opacity: 0; animation: 5s steps(1, end) infinite; }
.hand-f3 { opacity: 1; animation-name: count3; }
.hand-f2 { animation-name: count2; }
.hand-f1 { animation-name: count1; }
@keyframes count3 { 0% { opacity: 1; } 56% { opacity: 0; } 84% { opacity: 1; } }
@keyframes count2 { 0% { opacity: 0; } 56% { opacity: 1; } 70% { opacity: 0; } }
@keyframes count1 { 0% { opacity: 0; } 70% { opacity: 1; } 84% { opacity: 0; } }
.logo-pop { transform-box: fill-box; transform-origin: 0% 100%; animation: pop 5s var(--ease) infinite; }
@keyframes pop { 0%, 82%, 100% { transform: scale(1); } 84% { transform: scale(.2); } 90% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .hand-f, .logo-pop { animation: none; } }
