/* Brand Story page. Same tone as the home page: white ground, plum headings, rose accents, soft pink bands,
   white cards with the home's rounded shadow. Only the blocks the home does not have are defined here. */
.hero h1.hero-a { margin-top: 14px; font-size: clamp(15px, 2.1vw, 27px); }
.hero .hero-b { margin-bottom: 6px; font-size: clamp(12px, 1.3vw, 17px); }

.bsec .in { padding-block: 92px; display: flex; flex-direction: column; gap: 40px; }

/* opening statement: the home's pink-to-white band, centred, with the brand's characters behind */
.bdecl { background: linear-gradient(180deg, var(--soft) 0%, #fdf6f8 70%, var(--bg) 100%); overflow: hidden; }
.bdecl .in { position: relative; padding-block: 94px 60px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.bdecl h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; color: var(--ink); text-wrap: balance; max-width: 22em; }
.bdecl p { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 46em; text-wrap: pretty; }
.bname { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-family: "Noto Serif KR", "Noto Sans KR", serif; font-size: clamp(120px, 20vw, 240px); font-weight: 700; line-height: 1; color: #f3c9d1; opacity: 0.45; pointer-events: none; white-space: nowrap; }
.bdecl .in > :not(.bname) { position: relative; }
.bdecl .bname-t { color: var(--btn); font-weight: 600; letter-spacing: 0.02em; }

/* five concerns: the home's step cards */
.bcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.bcard { background: var(--bg); border-radius: 24px; box-shadow: 0 6px 24px rgba(111, 38, 64, 0.1); padding: 38px 16px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bcard:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(111, 38, 64, 0.16); }
.bcard .ico { margin-bottom: 6px; }
.bcard h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.bcard .why { font-size: 13px; line-height: 19.5px; color: var(--muted); min-height: 39px; }
.bcard .ans { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; font-size: 13px; font-weight: 600; line-height: 19.5px; color: var(--btn); }

/* proof */
.bproof { background: var(--soft); }
.bstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.bstats b { display: block; font-size: clamp(40px, 6.4vw, 76px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bstats span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.bclaim { text-align: center; font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; color: var(--btn); text-wrap: balance; }

/* made by Amarte */
.bmade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.bmade img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }
.bmade-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.bmade-text .title { text-align: left; }
.bmade-text p { font-size: 16px; line-height: 28px; color: var(--muted); }

/* world map: land as soft pink dots, a pulsing pin per place (larger and rose for Baekseol's markets), the same places listed below */
.bmap { position: relative; max-width: 1060px; width: 100%; margin-inline: auto; }
.bmap svg { display: block; width: 100%; height: auto; }
.bmap path { fill: none; stroke: var(--badge); stroke-width: 5.4; stroke-linecap: round; opacity: 0.55; }
.bpin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border: 2px solid var(--bg); border-radius: 50%; background: var(--ink); animation-duration: 0s; }
.bpin::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: inherit; opacity: 0; animation: bpulse 2.6s ease-out infinite; animation-delay: inherit; }
.bpin.bs { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--btn); z-index: 1; }
@keyframes bpulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.bpin span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--on); font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.bpin.bs span { background: var(--btn); }   /* names show on hover only: the Central Asian pins sit too close for standing labels */
.bpin.hot { z-index: 3; transform: scale(1.35); }
.bpin.hot span { opacity: 1; }
.bplaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bplaces li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 16px; background: var(--bg); box-shadow: 0 4px 16px rgba(111, 38, 64, 0.08); border: 1.5px solid transparent; transition: border-color 0.2s ease, transform 0.2s ease; min-width: 0; }
.bplaces b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bplaces span { font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: 0.02em; }
.bplaces .bs { background: var(--soft); }
.bplaces .bs span { color: var(--btn); font-weight: 700; }
.bplaces li.hot { border-color: var(--btn); transform: translateY(-2px); }

/* history */
.bhist { background: linear-gradient(180deg, var(--bg) 0%, #fdf6f8 12%, #fdf6f8 88%, var(--bg) 100%); }
.bhist .in { padding-block: 70px 120px; }
/* history: the stage pins to the screen while its tall wrapper scrolls past; brand.js turns one page of entries per scroll step.
   Left: the band of years. Middle: the page. Right: one dot per page, the current one drawn as a bar. */
.tl { position: relative; margin-top: 10px; }
.tl-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding-block: 96px 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr) 28px; gap: 0 44px; max-width: 1000px; margin-inline: auto; }
.tl-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
/* the section heading starts centred at the top of the stage and glides to its place above the years as the section pins */
.tl-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; transform-origin: left top; transform: translate(var(--hx, 0px), var(--hy, 0px)) scale(1.2); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tl-head .title { text-align: left; font-size: clamp(20px, 2.1vw, 27px); }
.tl-head .subtitle { text-align: left; font-size: 13.5px; }
.tl-stage.pinned .tl-head { transform: none; }
.tl-year { display: flex; flex-direction: column; font-size: clamp(54px, 7vw, 86px); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em; color: var(--btn); font-variant-numeric: tabular-nums; }
.tl-year i { font-style: normal; font-size: 0.42em; font-weight: 600; margin-block: 6px; opacity: 0.8; }
.tl-year .now { font-size: 0.6em; letter-spacing: -0.01em; }
.tl-year.flip { animation: tlflip 0.6s ease; }
@keyframes tlflip { from { opacity: 0; transform: translateY(26px); } }
.tl-count { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-pages { position: relative; min-width: 0; }
.tl-page { position: absolute; inset: 0; margin: 0; padding: 0 0 0 30px; list-style: none; border-left: 2px solid var(--line); display: flex; flex-direction: column; justify-content: safe center; opacity: 0; visibility: hidden; transform: translateY(44px); transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s; }
.tl-page.past { transform: translateY(-44px); }
.tl-page.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.tl-item { position: relative; padding: 8px 0; font-size: 15px; line-height: 1.5; color: var(--fg); opacity: 0; transform: translateX(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.tl-page.on .tl-item { opacity: 1; transform: none; transition-delay: calc(var(--k) * 45ms + 120ms); }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--btn); border: 2px solid var(--btn); }
/* Baekseol's own milestones stand out from the parent company's */
.tl-item.bs { font-weight: 700; color: var(--btn); }
.tl-item.bs::before { transform: scale(1.5); }
.tl-item.bs span { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; background: var(--btn); color: var(--on); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px; }
.tl-dots { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.tl-dots button { position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--badge); transition: height 0.3s ease, background-color 0.3s ease; }
.tl-dots button::after { content: ""; position: absolute; inset: -5px -11px; }   /* a larger area to press */
.tl-dots button:hover { background: var(--btn); }
.tl-dots button.on { height: 22px; background: var(--ink); }
.bhist-end { display: flex; justify-content: center; margin-top: 40px; }

@media (max-width: 820px) {
  .bsec .in { padding-block: 60px; gap: 28px; }
  .bdecl .in { padding-block: 56px 36px; gap: 16px; }
  .bdecl p { font-size: 14.5px; line-height: 24px; }
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bcard { padding: 26px 12px 22px; border-radius: 20px; }
  .bcard:last-child { grid-column: 1 / -1; }
  .bcard .why { min-height: 0; }
  .bstats { gap: 10px; }
  .bstats span { font-size: 12px; }
  .bmade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bmade-text p { font-size: 14.5px; line-height: 24px; }
  .bpin { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 1px; }
  .bpin.bs { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .bpin span { display: none; }
  .bplaces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bplaces li { padding: 11px 13px; }
  .bhist .in { padding-block: 44px 70px; }
  /* phone: years in one line on top, the page below, the dots down the right edge */
  .tl-stage { grid-template-columns: minmax(0, 1fr) 14px; grid-template-rows: auto minmax(0, 1fr); gap: 14px 10px; padding-block: 72px 24px; }
  .tl-side { grid-column: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 12px; }
  .tl-head, .tl-stage.pinned .tl-head { width: 100%; margin-bottom: 4px; transform: none; }
  .tl-year { flex-direction: row; align-items: baseline; gap: 8px; font-size: 36px; white-space: nowrap; }
  .tl-year i { margin: 0; }
  .tl-pages { grid-column: 1; grid-row: 2; }
  .tl-dots { grid-column: 2; grid-row: 1 / 3; gap: 7px; }
  .tl-dots button { width: 5px; height: 5px; }
  .tl-dots button.on { height: 16px; }
  .tl-page { padding-left: 22px; }
  .tl-item { font-size: 14px; padding: 6px 0; }
  .tl-item::before { left: -29px; top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bpin::after { animation: none; }
  .tl-page, .tl-page.on, .tl-item, .tl-page.on .tl-item { transition: none; }
  .tl-year.flip { animation: none; }
  .tl-head { transition: none; }
  .bcard { transition: none; }
}
@media (max-width: 820px) { .tl-page { justify-content: flex-start; padding-top: 14px; } }
