/* ============================================================================
   富邦財務 Fubon Finance — case study theme. Banking blue + teal.
   Research-forward, institutional, trustworthy. Scoped to .fbcase.
   ============================================================================ */
.fbcase {
  --fb-blue: #1290C9;       /* Fubon icon blue */
  --fb-blue-soft: #4fb8e6;
  --fb-teal: #1BA39C;        /* Fubon icon teal */
  --fb-navy: #0e2030;        /* deep navy — dark sections */
  --fb-navy2: #16304a;
  --fb-steel: #5c7186;
  --fb-mist: #eef4f8;
  --fb-cream: #f6f9fb;
  --fb-ink: #102233;
  --fb-text: #41566a;
  --fb-line: rgba(16,34,51,.10);
  position: relative; overflow: hidden; background: #fff;
  font-family: var(--font-sans); color: var(--fb-text);
}
.fbcase .wrap { position: relative; z-index: 1; }

/* ---- shared type ---- */
.fbcase .fbeyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fb-blue); margin: 0 0 16px; }
.fbcase .fbeyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--fb-blue); }
.fbcase .fbeyebrow--on { color: var(--fb-blue-soft); }
.fbcase .fbeyebrow--on::before { background: var(--fb-blue-soft); }
.fbcase .fbh2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,1.1rem + 1.7vw,2.4rem);
  line-height: 1.22; letter-spacing: -0.02em; color: var(--fb-ink); margin: 0 0 22px; text-wrap: balance; }
.fbcase .fbh2--on { color: #fff; }
.fbcase .fbcase__p { font-size: clamp(15px,1vw,16.5px); line-height: 1.95; color: var(--fb-text); margin: 0 0 18px; }
.fbcase .fbcase__p:last-child { margin-bottom: 0; }
.fbcase .fbcenter { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem,1.5rem + 2vw,3.2rem); }

/* sections + spacing */
.fbsec { padding-block: 4rem; }
.fbcase .pb-gap { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.fbcase .mt-gap { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.fbcase .fbshot, .fbcase [class*="__fig"], .fbcase [class*="__media"] { margin-block: 1rem; }
.fbsec--mist { background: var(--fb-mist); }
.fbsec--navy { background: var(--fb-navy); }
.fbsec--navy .fbcase__p { color: rgba(255,255,255,.8); }

/* ---- Hero ---- */
.fbhero { position: relative; background: var(--fb-navy); color: #fff; overflow: hidden;
  padding-block: clamp(1.5rem,1rem + 2vw,2.5rem) clamp(3rem,2rem + 4vw,5rem); }
.fbhero__logo { position: relative; z-index: 1; display: block; width: fit-content; height: clamp(40px, 5vw, 58px);
  background: #fff; padding: 14px 22px; border-radius: 12px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-sizing: content-box; }
.fbhero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(18,144,201,.34) 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(27,163,156,.26) 0%, transparent 60%); }
.fbback { appearance: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); margin-bottom: calc(30px + 1.6rem); transition: color var(--dur-fast); }
.fbback:hover { color: #fff; }
.fbback [data-lucide] { width: 16px; height: 16px; }
.fbhero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 1.6rem; align-items: center; }
.fbhero__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.fbchip { display: inline-flex; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 6px; color: #fff; background: linear-gradient(120deg, var(--fb-blue), var(--fb-teal)); }
.fbhero__year { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); }
.fbhero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,1.3rem + 3.2vw,3.6rem);
  line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin: 0; text-wrap: balance; }
.fbhero__sub { font-size: clamp(15px,1vw,16.5px); line-height: 1.8; color: rgba(255,255,255,.78); margin: 24px 0 0; }
.fbhero__svc { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; color: var(--fb-blue-soft); margin: 24px 0 0; }
.fbhero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1); background: #fff; }
.fbhero__media img { width: 100%; height: auto; display: block; }

/* ---- generic figure ---- */
.fbshot { margin: clamp(2rem,1.5rem + 2vw,3rem) 0 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 0 22px 50px -28px rgba(16,34,51,.45); border: 1px solid var(--fb-line); }
.fbshot img { width: 100%; height: auto; display: block; }
.fbshot__cap { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--fb-steel);
  padding: 13px 18px; background: var(--fb-cream); border-top: 1px solid var(--fb-line); }

/* ---- Approach: two phase cards ---- */
.fbphases { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.fbphase { background: #fff; border: 1px solid var(--fb-line); border-radius: var(--radius-lg); padding: 32px 30px; border-top: 3px solid var(--fb-blue); }
.fbphase__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fb-blue); margin-bottom: 16px; }
.fbphase__metric { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.2rem,1.6rem + 1.8vw,3rem); line-height: 1;
  letter-spacing: -0.02em; background: linear-gradient(120deg, var(--fb-blue), var(--fb-teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fbphase__metriclabel { display: block; font-size: 12.5px; color: var(--fb-steel); margin: 8px 0 14px; }
.fbphase__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--fb-ink); margin: 0 0 12px; }
.fbphase__d { font-size: 14px; line-height: 1.75; color: var(--fb-text); margin: 0; }

/* ---- Highlights band (navy) ---- */
.fbhi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.fbhi__cell { padding: 8px 0; border-top: 2px solid rgba(255,255,255,.18); }
.fbhi__n { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.2rem,1.4rem + 2.4vw,3.2rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--fb-blue-soft); margin-bottom: 14px; }
.fbhi__d { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.74); margin: 0; }

/* ---- Findings ---- */
.fbfindings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fbfind { background: var(--fb-cream); border: 1px solid var(--fb-line); border-radius: var(--radius-lg); padding: 28px 26px; }
.fbfind__stat { display: block; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.3rem,1rem + 1vw,1.7rem); color: var(--fb-blue); letter-spacing: -0.01em; margin-bottom: 12px; }
.fbfind__t { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--fb-ink); margin: 0 0 10px; line-height: 1.3; }
.fbfind__d { font-size: 13.5px; line-height: 1.7; color: var(--fb-text); margin: 0; }

/* ---- Direction options ---- */
.fbdirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.fbdir { background: #fff; border: 1px solid var(--fb-line); border-radius: var(--radius-lg); padding: 30px 28px; position: relative; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.fbdir:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(16,34,51,.4); }
.fbdir__n { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--fb-blue); margin-bottom: 16px; }
.fbdir__t { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--fb-ink); margin: 0 0 12px; line-height: 1.25; }
.fbdir__tone { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--fb-teal); background: rgba(27,163,156,.1); padding: 5px 12px; border-radius: 6px; margin-bottom: 16px; }
.fbdir__d { font-size: 14px; line-height: 1.7; color: var(--fb-text); margin: 0; }

/* ---- Closing quote (navy) ---- */
.fbquote { position: relative; max-width: 880px; margin: 0 auto; text-align: center; padding: 0 clamp(1rem,3vw,3rem); }
.fbquote__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,1.1rem + 1.8vw,2.3rem);
  line-height: 1.34; letter-spacing: -0.015em; color: #fff; margin: 0 0 24px; text-wrap: balance; }
.fbquote__body { font-size: clamp(14px,1vw,15.5px); line-height: 1.85; color: rgba(255,255,255,.72); margin: 0 auto; max-width: 680px; }

/* ---- Deliverables ---- */
.fbdeliver { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 940px; margin: 0 auto; list-style: none; padding: 0; }
.fbdeliver li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--fb-text); padding: 14px 0; border-bottom: 1px solid var(--fb-line); }
.fbdeliver li [data-lucide] { width: 18px; height: 18px; flex: none; color: var(--fb-blue); margin-top: 1px; }

/* ---- block ---- */
.fbblock { max-width: 760px; }

/* ---- CTA ---- */
.fbcta { position: relative; background: var(--fb-navy); padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; overflow: hidden; }
.fbcta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 0%, rgba(18,144,201,.3) 0%, transparent 60%); }
.fbcta__inner { position: relative; z-index: 1; }
.fbcta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,1.2rem + 2.2vw,2.8rem); color: #fff; margin: 0 0 28px; text-wrap: balance; }
.fbbtn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-weight: 600; font-size: 16px; color: #fff; background: linear-gradient(120deg, var(--fb-blue), var(--fb-teal)); border: 0; height: 58px; padding: 0 32px;
  border-radius: var(--radius-md); box-shadow: 0 18px 36px -14px rgba(18,144,201,.7); transition: all var(--dur-base) var(--ease-out); }
.fbbtn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.fbbtn [data-lucide] { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .fbhero__grid { grid-template-columns: 1fr; gap: 32px; }
  .fbphases { grid-template-columns: 1fr; }
  .fbhi { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .fbfindings { grid-template-columns: 1fr; }
  .fbdirs { grid-template-columns: 1fr; }
  .fbdeliver { grid-template-columns: 1fr; }
}
