/*
 * Rights Cracker — styles.css
 * ─────────────────────────────────────────────────────────────────────
 * TABLE OF CONTENTS
 *
 *  1.  Design tokens (CSS custom properties)
 *  2.  Base reset & typography
 *  3.  Header & nav
 *  4.  Hamburger / mobile nav
 *  5.  Language toggle
 *  6.  Hero & carousel
 *  7.  Trusted-by band
 *  8.  Campaign banner
 *  9.  Shared section layout
 * 10.  What we do / Portfolio grid
 * 11.  IP cards
 * 12.  Our Work / case studies
 * 13.  News
 * 14.  About / why us
 * 15.  How licensing works
 * 16.  CTA band
 * 17.  Footer
 * 18.  Inner pages (page-hero, about story, vision/mission, IP detail, article, product list, char grid)
 * 19.  Responsive overrides (single consolidated @media block)
 * ─────────────────────────────────────────────────────────────────────
 */

:root {
  --navy-50: #E8EBF2;
  --navy-100: #C5CDE3;
  --navy-200: #9AA8CC;
  --navy-300: #7A8CB8;
  --navy-400: #4A5A91;
  --navy-600: #1F2D5C;
  --navy-800: #15203F;
  --navy-900: #0E1529;

  --gold-50: #FBF2DC;
  --gold-100: #F5E0AE;
  --gold-200: #EECB7A;
  --gold-600: #D9A521;
  --gold-800: #9C7717;
  --gold-900: #6B5210;

  --red-50: #FDECEA;
  --red-100: #F9C8C5;
  --red-200: #F2A09A;
  --red-600: #DC2D21;
  --red-800: #B02018;

  --blue-50: #EEF1FA;
  --blue-100: #C5D0EF;
  --blue-500: #2B4BAF;
  --blue-700: #1E3580;

  --neutral-50: #F7F5F0;
  --neutral-100: #E4E1DA;
  --neutral-200: #C7C4BC;
  --neutral-400: #696770;
  --neutral-600: #46445A;
  --neutral-800: #2B2A35;
  --neutral-900: #1A1924;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}

body {
  font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, sans-serif;
  font-size: 17px;
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.6;
}

body.lang-fade [data-i18n] {
  opacity: 0;
}

[data-i18n] {
  transition: opacity 0.12s ease;
}

/* ── Nunito — display headings ───────────────────────*/
h1, h2, h3 {
  font-family: 'Nunito', 'Noto Sans Thai', sans-serif;
  font-optical-sizing: auto;
}

/* ── Thai-language font priority ─────────────────────
   When lang="th", Noto Sans Thai leads so Latin chars
   mixed into Thai sentences render in the same face.  */
:lang(th) body,
:lang(th) p,
:lang(th) li,
:lang(th) span,
:lang(th) a,
:lang(th) .article-lead {
  font-family: 'Noto Sans Thai', 'DM Sans', sans-serif;
}
:lang(th) h1,
:lang(th) h2,
:lang(th) h3 {
  font-family: 'Noto Sans Thai', 'Nunito', sans-serif;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; }

/* ── Smooth interactive transitions ────────────────────*/
a, .btn, .ip-card, .case-card, .nav-links a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ip-card:hover, .case-card:hover {
  transform: translateY(-2px);
}

/* ── Scroll reveal ─────────────────────────────────────*/
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Hero stagger entrance ─────────────────────────────*/
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cancel the group reveal — animate children instead */
.hero-content.reveal,
.ip-hero-content.reveal,
.page-hero-content.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-content > *,
.ip-hero-content > *,
.page-hero-content > * {
  opacity: 0;
  animation: heroFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content > *:nth-child(1),
.ip-hero-content > *:nth-child(1),
.page-hero-content > *:nth-child(1) { animation-delay: 0s; }

.hero-content > *:nth-child(2),
.ip-hero-content > *:nth-child(2),
.page-hero-content > *:nth-child(2) { animation-delay: 0.05s; }

.hero-content > *:nth-child(3),
.ip-hero-content > *:nth-child(3),
.page-hero-content > *:nth-child(3) { animation-delay: 0.1s; }

.hero-content > *:nth-child(4),
.ip-hero-content > *:nth-child(4),
.page-hero-content > *:nth-child(4) { animation-delay: 0.15s; }

.hero-content > *:nth-child(5),
.ip-hero-content > *:nth-child(5),
.page-hero-content > *:nth-child(5) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .ip-hero-content > *,
  .page-hero-content > * { opacity: 1; animation: none; }
}

/* ── Section H2 accent underline ──────────────────────*/
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--red-600);
  transition: width 0.5s 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-head.is-visible h2::after { width: 44px; }

/* Accent color on dark / coloured backgrounds */
.about .section-head h2::after,
.pokemon-ecosystem .section-head h2::after { background: var(--gold-200); }

@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { transition: none; }
  .section-head.is-visible h2::after { width: 44px; }
}

/* ── Header ────────────────────────────────────────────*/
header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-badge img { height: 40px; width: auto; display: block; }
@media (max-width: 480px) {
  .nav { padding: 12px 20px; gap: 12px; }
  .nav-badge img { height: 34px; }
}
@media (max-width: 480px) { .work-feature-stats .stat-num { font-size: 19px; } }
@media (max-width: 360px) {
  .nav { padding: 12px 16px; }
  .nav-badge img { height: 30px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--navy-100);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active, .nav-links a.nav-active { color: var(--gold-600); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--red-600); color: #ffffff; }
.btn-primary:hover { background: var(--red-800); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--navy-200);
}
.btn-outline:hover { border-color: var(--navy-600); }

/* ── Language toggle ───────────────────────────────────*/
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0aec0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--navy-200);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 22px 4px 8px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.lang-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.lang-select option {
  background: var(--navy-900);
  color: #fff;
}

/* ── Hamburger menu ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--navy-800);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--navy-100) !important;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}
.mobile-nav a:hover { color: #ffffff !important; }
.mobile-nav .mobile-nav-cta {
  margin-top: 16px;
  text-align: center;
  padding: 13px 20px !important;
  font-size: 15px;
  border-radius: 8px;
  background: var(--gold-500, #c8922a) !important;
  color: var(--navy-900) !important;
  font-weight: 700 !important;
  border-bottom: none !important;
}
.mobile-nav .mobile-nav-cta:hover {
  background: var(--gold-600, #a87820) !important;
  color: var(--navy-900) !important;
}


/* ── Hero ──────────────────────────────────────────────*/
.hero {
  padding: 72px 0 80px;
  background: var(--navy-900);
  color: #ffffff;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

/* ── Hero carousel ─────────────────────────────────────*/
.hero-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--neutral-100);
  aspect-ratio: 4 / 3;
  width: 100%;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--neutral-400);
  background: var(--neutral-100);
  border: 2px dashed var(--neutral-200);
}
.hero-img-placeholder svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  opacity: 0.45;
}
.hero-img-placeholder span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--navy-900);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-btn:hover { background: #ffffff; transform: translateY(-50%) scale(1.08); }
.carousel-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; }
.btn.btn-hero {
  font-size: 17px; font-weight: 700; padding: 15px 34px; border-radius: 10px;
  transition: transform .15s ease, background .15s ease;
}
.btn.btn-hero:hover { transform: translateY(-2px); }
/* Thai H1 is longer: a touch smaller on desktop so "ตัวแทนลิขสิทธิ์ Pokémon" fits on one line */
@media (min-width: 881px) { :lang(th) .hero h1 { font-size: 42px; } }
.hero p.hero-tagline {
  font-size: 22px; font-weight: 700; color: var(--gold-200);
  margin: -4px 0 14px; max-width: none;
}

/* ── Trusted by ────────────────────────────────────────*/
.trusted-by {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.trusted-by-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trusted-by-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-400);
  white-space: nowrap;
}
.trusted-by-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trusted-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* ── Campaign / hero banner ────────────────────────────*/
.campaign-banner {
  background: var(--navy-900);
  color: #ffffff;
}
.campaign-banner .wrap {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.campaign-banner .cb-text { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.campaign-banner .cb-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-200);
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.campaign-banner .cb-body { font-size: 15px; color: var(--navy-100); }
.campaign-banner .cb-body strong { color: #ffffff; }
.campaign-banner .btn-light {
  background: var(--gold-600);
  color: var(--gold-900);
  flex-shrink: 0;
}
.campaign-banner .btn-light:hover { background: var(--gold-200); }

/* ── Section shared ────────────────────────────────────*/
section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 8px;
}
.section-head p { color: var(--neutral-600); font-size: 17px; }

/* ── What we do / Portfolio ────────────────────────────*/
.prop-tagline {
  font-size: 22px !important;
  font-weight: 600;
  color: var(--navy-900) !important;
  line-height: 1.35;
  margin-bottom: 14px !important;
  letter-spacing: -0.01em;
}
.prop-ip-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.prop-ip-intro h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neutral-400);
  white-space: nowrap;
}
.prop-ip-intro::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--neutral-200);
}

/* ── IP portfolio ──────────────────────────────────────*/
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
}
.ip-card {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
a.ip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,21,41,0.10);
}
.ip-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-art span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ip-body { padding: 18px 20px 22px; }
.ip-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.ip-body .tag,
.anime-partner .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-600);
  background: var(--navy-50);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.ip-body p { font-size: 14px; color: var(--neutral-600); }

.ip-1 .ip-art { background: var(--navy-50); }
.ip-1 .ip-art span { color: var(--navy-800); }
.ip-2 .ip-art { background: var(--gold-50); }
.ip-2 .ip-art span { color: var(--gold-800); }
.ip-3 .ip-art { background: var(--neutral-100); }
.ip-3 .ip-art span { color: var(--navy-800); }
.ip-4 .ip-art { background: var(--red-50); }
.ip-4 .ip-art span { color: var(--red-800); }
.ip-5 .ip-art { background: var(--gold-100); }
.ip-5 .ip-art span { color: var(--navy-900); }

/* ── Our Work / case studies ───────────────────────────*/
.our-work { background: #ffffff; border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); }

/* ── Work feature card (full-bleed image + text overlay) */
.work-feature {
  position: relative;
  color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy-900);
}

/* Image fills the entire card */
.work-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-800);
}
.work-img-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--navy-400);
}
.work-img-placeholder svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  opacity: 0.4;
}
.work-img-placeholder span {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* Text body sits at the bottom, over the image */
.work-feature-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,16,34,0.72) 22%, rgba(10,16,34,0.96) 56%);
}
.work-feature-main { padding: 40px; }
.work-feature-main .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-200);
  background: rgba(255,255,255,0.10);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.work-feature-main h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.work-feature-main p {
  font-size: 15px;
  color: var(--navy-100);
  max-width: 460px;
}
.work-feature-stats {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--navy-100);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Future case-study placeholders */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border: 1px dashed var(--neutral-200);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-card-soon {
  opacity: 0.6;
  border-style: dashed;
  pointer-events: none;
}
.case-card-thumb-soon {
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-800, #15203F);
}
.case-card-thumb-soon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tag-soon {
  background: var(--neutral-100) !important;
  color: var(--neutral-500) !important;
}
.case-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-600);
  background: var(--neutral-100);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 4px;
  width: fit-content;
}
.case-card h3 { font-size: 18px; font-weight: 600; color: var(--navy-900); }
.case-card p { font-size: 15px; color: var(--neutral-600); }

/* ── News ──────────────────────────────────────────────*/
.news {
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.news-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  overflow: hidden;
}
.news-visual {
  height: 220px;
  position: relative;
  background: linear-gradient(135deg, var(--gold-50) 0%, var(--navy-50) 100%);
  overflow: hidden;
}
.news-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nv-plate { position: absolute; border-radius: 50%; }
.nv-plate--1 { width: 70px; height: 70px; background: var(--red-600); left: -20px; top: -20px; }
.nv-plate--2 { width: 50px; height: 50px; background: var(--gold-600); right: 30px; top: 20px; }
.nv-plate--3 { width: 90px; height: 90px; background: var(--navy-200); right: -30px; bottom: -40px; }
.news-body { padding: 22px 24px 26px; }
.news-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-600);
  background: var(--navy-50);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.news-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.news-body p { font-size: 15px; color: var(--neutral-600); }

/* ── About / why us ────────────────────────────────────*/
.about { background: var(--navy-800); }
.about .section-head h2 { color: #ffffff; }
.about .section-head p { color: var(--navy-100); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.about-item h3 {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.about-item p { font-size: 15px; color: var(--navy-100); }
.about-item .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-200);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* ── How licensing works ───────────────────────────────*/
.process { background: var(--neutral-50); }
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--gold-200) 0,
    var(--gold-200) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.process-step ul {
  text-align: left;
  display: inline-block;
}
.process-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-200);
  box-shadow: 0 0 0 5px var(--neutral-50);
}
.process-num svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}
.process-step:nth-child(1) .process-num { background: var(--navy-900); }
.process-step:nth-child(2) .process-num { background: var(--red-600); color: #ffffff; }
.process-step:nth-child(3) .process-num { background: var(--gold-600); color: var(--navy-900); }
.process-step:nth-child(4) .process-num { background: var(--navy-600); }
.process-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.process-step ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.process-step li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-600);
}
.process-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-600);
}

/* ── CTA band ──────────────────────────────────────────*/
.cta-band {
  background: var(--navy-900);
  color: #ffffff;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 {
  font-size: 29px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cta-band p { color: var(--navy-100); font-size: 16px; max-width: 480px; }
.cta-band .btn-primary { white-space: nowrap; }

/* ── Footer ────────────────────────────────────────────*/
footer {
  background: var(--neutral-900);
  color: var(--neutral-200);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-badge {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-badge img { height: 44px; width: auto; display: block; }
.footer-grid p { font-size: 14px; color: var(--neutral-400); max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--neutral-800);
  border-radius: 8px;
  color: var(--neutral-200);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--neutral-800); color: #ffffff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-grid h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-400);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { color: var(--neutral-200); font-size: 15px; }
.footer-grid ul a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: 22px;
  font-size: 13px;
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--neutral-200); }

/* ── Inner pages — shared + page-specific ──────────────*/

/* ── Page hero (inner pages, replaces carousel hero) ───*/
.page-hero {
  background: var(--navy-900);
  color: #ffffff;
  padding: 80px 0;
}
.page-hero-content { max-width: 760px; }
.page-hero .kicker,
.hero .kicker { color: var(--gold-200); margin-bottom: 16px; }

/* Official licensing agent badge (hero) */
.official-badge {
  width: fit-content;          /* hero columns are flex: don't stretch */
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-600);
  border-radius: 999px;
  background: rgba(217, 165, 33, 0.14);
  color: var(--gold-200);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.official-badge svg { width: 20px; height: 20px; flex: none; fill: var(--gold-200); }
.official-badge > span { text-wrap: balance; }
.official-badge + .kicker { margin-top: 0; }
@media (max-width: 480px) { .official-badge { font-size: 13px; padding: 7px 14px 7px 10px; } }
.page-hero h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.page-hero p { font-size: 18px; color: var(--navy-100); max-width: 540px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-300);
}
.breadcrumb a { color: var(--navy-200); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: var(--navy-700); }

/* ── About page — story section ────────────────────────*/
.about-story {
  padding: 80px 0;
  background: #ffffff;
}
.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.about-story-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-800);
  margin-bottom: 12px;
}
.about-story-inner h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.about-story-body { display: flex; flex-direction: column; gap: 16px; }
.about-story-body p { font-size: 17px; color: var(--neutral-600); line-height: 1.7; }

/* ── About: full-width image section ───────────────────*/
.about-image-section { padding: 0; overflow: hidden; }
.about-image-full { display: block; width: 100%; height: 480px; object-fit: cover; object-position: center 55%; }
@media (max-width: 600px) { .about-image-full { height: 280px; } }
.about-image-ph {
  width: 100%;
  height: 480px;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--neutral-400);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.about-image-ph svg { width: 44px; height: 44px; fill: currentColor; opacity: 0.35; }
.about-image-ph span { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }

/* ── About: Vision / Mission ───────────────────────────*/
.vm-section { background: var(--neutral-50); border-top: 1px solid var(--neutral-200); padding: 80px 0; }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}
.vm-item { padding: 48px 44px; }
.vm-item:first-child { border-right: 1px solid var(--neutral-200); }
.vm-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-800);
  margin-bottom: 14px;
}
.vm-item h3 { font-size: 20px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; line-height: 1.3; }
.vm-item p { font-size: 16px; color: var(--neutral-600); line-height: 1.75; }

/* ── Product listing page ──────────────────────────────*/
.products-section {
  padding: 72px 0;
  background: var(--neutral-50);
}
.products-intro { max-width: 560px; margin-bottom: 48px; }
.products-intro h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.products-intro p { font-size: 17px; color: var(--neutral-600); }

.pc-art-pokemon { background: var(--navy-50); color: var(--navy-700); }
.pc-art-duck { background: var(--gold-50); color: var(--gold-800); }


/* ── IP detail page hero ───────────────────────────────*/
.ip-hero {
  background: var(--navy-900);
  color: #ffffff;
  padding: 64px 0 56px;
}
.ip-hero-content { max-width: 740px; }
.ip-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-200);
  background: rgba(255,255,255,0.07);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.ip-hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 18px;
}
.ip-hero .ip-hero-sub {
  font-size: 18px;
  color: var(--navy-100);
  max-width: 760px;
  line-height: 1.6;
}
.ip-stats-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ip-stats-bar > .wrap {
  display: flex;
  max-width: 100%;
  padding: 0;
}
.ip-stat-item {
  flex: 1;
  padding: 26px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ip-stat-item:last-child { border-right: none; }
.ip-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.ip-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy-300);
}

/* IP overview (two-column narrative) */
.ip-overview {
  padding: 72px 0;
  background: #ffffff;
}
.ip-overview-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.ip-overview-side-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-800);
  margin-bottom: 10px;
}
.ip-overview-side h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ip-overview-body { display: flex; flex-direction: column; gap: 14px; }
.ip-overview-body p { font-size: 16px; color: var(--neutral-600); line-height: 1.7; }

/* Benefits (why this IP) */
.ip-benefits {
  padding: 72px 0;
  background: var(--gold-50);
  border-top: 1px solid var(--neutral-200);
}
.benefit-grid {
  display: flex;
  flex-direction: column;
  margin-top: 44px;
  border-top: 1px solid var(--neutral-200);
}
.benefit-card {
  display: grid;
  grid-template-columns: 48px 1fr 260px;
  gap: 24px;
  padding: 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: stretch;
  overflow: hidden;
}
.benefit-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--neutral-200);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding: 24px 0;
  align-self: center;
}
.benefit-icon { display: none; }
.benefit-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.benefit-body h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; line-height: 1.35; }
.benefit-body p { font-size: 16px; color: var(--neutral-600); line-height: 1.7; }
/* Benefit image — flush to the row edge (no fade, so characters stay fully visible) */
.benefit-img {
  position: relative;
  overflow: hidden;
  background: var(--neutral-100);
}
.benefit-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pokémon Ecosystem */
.pokemon-ecosystem { padding: 72px 0; background: var(--navy-900); color: #ffffff; }
.pokemon-ecosystem .section-head h2 { color: #ffffff; }
.pokemon-ecosystem .section-head p { color: rgba(255,255,255,0.7); }
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.ecosystem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.ecosystem-icon {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.ecosystem-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecosystem-card-body { padding: 24px 28px 28px; }
.ecosystem-card h3 { font-size: 17px; font-weight: 600; color: #ffffff; margin-bottom: 10px; }
.ecosystem-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ── Pokémon Ecosystem Extensions ───────────────────────────── */
.pokemon-extensions {
  padding: 72px 0;
  background: var(--navy-800, #1a2744);
  color: #ffffff;
}
.pokemon-extensions .section-head h2 { color: #ffffff; }
.pokemon-extensions .section-head p { color: rgba(255,255,255,0.7); }
.extensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.extension-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.extensions-grid--2 { grid-template-columns: repeat(2, 1fr); }
.extension-card-thumb { overflow: hidden; aspect-ratio: 5/3; background: #0E1529; }
.extension-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.extension-card-body { padding: 28px 32px 32px; }
.extension-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400, #f5c842);
  margin-bottom: 12px;
}
.extension-card h3 { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.extension-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ── Authorized Representative Banner ───────────────────────── */
.auth-banner {
  background: var(--navy-900);
  padding: 56px 0;
}
.auth-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.auth-banner-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 12px;
}
.auth-banner h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.auth-banner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy-200);
  margin: 0;
  max-width: 600px;
}

@media (max-width: 880px) {
  /* Nav */
  .hamburger { display: flex; margin-right: 6px; }
  .nav-right .btn-primary { display: none; }
  .nav-right { gap: 10px; }
  .nav-links { display: none; }
  /* Layout */
  .footer-grid, .work-feature-body, .about-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .campaign-banner .wrap { flex-direction: column; align-items: flex-start; }
  /* Hero */
  .hero { padding: 48px 0 0; }
  .hero h1 { font-size: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { margin: 0 -24px; width: calc(100% + 48px); }
  .hero-carousel { aspect-ratio: 4 / 3; border-radius: 0; width: 100%; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  /* Work feature card */
  .work-feature { min-height: 0; flex-direction: column; }
  .work-visual { position: relative; inset: auto; height: 220px; }
  .work-feature-body { background: linear-gradient(to bottom, rgba(10,16,34,0.82) 0%, rgba(10,16,34,0.97) 100%); }
  .work-feature-main { padding: 24px; }
  .work-feature-stats { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); flex-direction: row; flex-wrap: wrap; padding: 20px 24px 24px; gap: 16px; }
  .work-feature-stats .stat { flex: 1 0 40%; }
  .work-feature-actions { flex-wrap: wrap; }
  /* Process */
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-steps::before { display: none; }
  /* Inner pages */
  .page-hero h1 { font-size: 32px; }
  .about-story-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-image-ph { height: 300px; }
  .vm-grid { grid-template-columns: 1fr; }
  .vm-item:first-child { border-right: none; border-bottom: 1px solid var(--neutral-200); }
  .product-card-art { min-height: 180px; }
  .ip-hero h1 { font-size: 36px; }
  .ip-overview-inner { grid-template-columns: 1fr; gap: 36px; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .extensions-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-stats-bar > .wrap { flex-wrap: wrap; }
  .ip-stat-item { flex: 0 0 50%; }
}

@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .extensions-grid { grid-template-columns: 1fr; }

  .benefit-card { grid-template-columns: 40px 1fr; gap: 20px; }
  .benefit-num { font-size: 28px; }
  .benefit-img { display: none; }
  .ip-stat-item { flex: 0 0 100%; border-right: none; border-bottom: 1px solid var(--neutral-200); }
  .ip-stat-item:last-child { border-bottom: none; }
  /* Tighter vertical rhythm on small screens */
  section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 16px; }
  .hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .ip-hero h1 { font-size: 30px; }
  .hero-content { gap: 12px; }
}

/* ── Case study pages ──────────────────────────────────── */
.case-back { padding-top: 32px; }
.case-back--bottom { padding: 48px 0; }

.case-img {
  width: 100%;
  border-radius: 10px;
  margin: 24px 0 8px;
  display: block;
}

/* Full-bleed image inside .work-visual */
.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Case card with image thumbnail */
.case-card-thumb {
  margin: -24px -24px 20px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.case-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Button variants */
.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

/* Case card: tag + partner logo on one row */
.case-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case-card-partner img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Button + partner logo on same row inside feature card */
.work-feature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.work-feature-actions .btn { margin-top: 0; }
.work-feature-partner img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border-radius: 7px;
  padding: 4px 10px;
}

/* Contextual button margins */
.work-feature-main .btn { margin-top: 24px; }
.case-card .btn { margin-top: 12px; margin-left: auto; align-self: flex-end; }

/* News — see-all link row */
.news-see-all { margin-top: 40px; text-align: center; }

/* Link that wraps a heading — resets decoration */
a.link-unstyled { text-decoration: none; color: inherit; }

/* Product pages */
.product-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.char-desc {
  font-weight: 400;
  color: var(--neutral-600);
}

/* About page */
.about-hero-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* ── Article pages (news/[slug].html) ──────────────────── */
.article-visual {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700, #253480) 0%, var(--navy-900) 100%);
}
.article-visual.av-gold {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-800) 100%);
}
.article-visual.av-red {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-800) 100%);
}
.article-visual.av-neutral {
  background: linear-gradient(135deg, var(--neutral-600) 0%, var(--neutral-800) 100%);
}
.article-visual .nv-plate { opacity: 0.15; }

.article-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-400);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}
.article-back:hover { color: var(--gold-600); }

.article-header { margin-bottom: 0; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 18px;
}
.article-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--neutral-800);
  margin: 0;
}

/* Body prose */
.article-body { font-size: 16px; line-height: 1.8; color: var(--neutral-800); margin-top: 44px; }
.article-body p,
.article-body li,
.article-body blockquote,
.article-lead { font-family: inherit; }
.article-body h2 { font-size: 21px; font-weight: 700; color: var(--navy-900); margin: 48px 0 14px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--navy-800); margin: 32px 0 10px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--gold-600);
  margin: 36px 0;
  padding: 18px 24px;
  background: var(--gold-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy-700);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-img-ph {
  background: var(--neutral-100);
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-size: 13px;
  font-weight: 500;
  margin: 36px 0 10px;
  gap: 8px;
}
.article-img-ph svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.45; }
.article-caption { font-size: 12px; color: var(--neutral-400); text-align: center; margin: 0 0 32px; }
.article-divider { border: none; border-top: 1px solid var(--neutral-200); margin: 44px 0; }

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Clickable news cards */
a.news-card, a.news-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.news-card { display: flex; flex-direction: column; }
a.news-featured { display: grid; }
a.news-card:hover, a.news-featured:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
a.news-card:hover .news-body h3,
a.news-featured:hover .news-body h3 { color: var(--gold-700, var(--gold-600)); }

/* News page — featured article (side-by-side layout) */
.news-page a.news-featured {
  grid-template-columns: 1.2fr 1fr;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  margin-bottom: 40px;
  background: #fff;
}
.news-page a.news-featured .news-visual {
  height: 100%;
  min-height: 300px;
}
.news-page a.news-featured .news-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.news-page a.news-featured .news-body h3 { font-size: 22px; }
.news-page #news-featured-container:empty + .news-grid { margin-top: 0; }
.news-page .news-grid { margin-top: 0; }
@media (max-width: 768px) {
  .news-page a.news-featured { grid-template-columns: 1fr; }
  .news-page a.news-featured .news-visual { min-height: 220px; }
}

@media (max-width: 640px) {
  .article-visual { height: 200px; }
  .article-page { padding: 40px 20px 64px; }
  .article-lead { font-size: 16px; }
  .article-body { font-size: 15px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
}


/* ── Product list: 2-column grid ───────────────────────*/
.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) {
  .product-list { grid-template-columns: 1fr; }
  .auth-banner-inner { grid-template-columns: 1fr; gap: 24px; }
}
.product-card-full {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
a.product-card-full:visited,
a.product-card-full:visited h2,
a.product-card-full:visited p,
a.product-card-full:visited .tag,
a.product-card-full:visited .btn-outline {
  color: inherit;
}
.product-card-full:hover .prod-arrow { transform: translateX(4px); }
.product-card-art { aspect-ratio: 4/3; min-height: unset; }
.product-card-body { padding: 24px 28px 20px; }
/* Whole card is a link — give its text real colours so browsers (iOS Safari) don't paint it link-blue */
a.product-card-full, a.product-card-full:visited { color: var(--neutral-700); }
.product-card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-600);
  background: var(--navy-50);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.product-card-body h2 { font-size: 22px; margin-bottom: 8px; color: var(--navy-900); }
.product-card-body > p { font-size: 15px; color: var(--neutral-600); margin-bottom: 16px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-bottom { padding-top: 12px; border-top: 1px solid var(--neutral-100); display: flex; justify-content: flex-end; }
.prod-arrow {
  font-size: 20px;
  color: var(--navy-400);
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.product-card-full:hover .prod-arrow { transform: translateX(5px); color: var(--navy-900); }

/* Placeholder card (coming soon) */
.product-card-placeholder {
  border: 2px dashed var(--neutral-200);
  border-radius: 16px;
  background: var(--neutral-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
  text-align: center;
  color: var(--neutral-400);
  aspect-ratio: unset;
  min-height: 200px;
}
.product-card-placeholder svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  flex-shrink: 0;
}
.product-card-placeholder p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 220px;
}

/* Article body images */
.article-body-img { width: 100%; border-radius: 8px; display: block; margin: 24px 0; }

/* IP art full-bleed image */
.ip-art-img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; border-radius: 11px 11px 0 0; }
.ip-art-img--30 { object-position: center 30%; }
/* Logo as card cover — show the whole mark, centred on a soft panel */
.ip-art-img.ip-art-logo,
.product-hero-img.ip-art-logo {
  object-fit: contain;
  object-position: center;
  padding: 28px 12%;
  box-sizing: border-box;
  background: var(--navy-50);
}
.product-hero-img.ip-art-logo { height: 100%; padding: 48px 14%; }
/* Full-width logo band under an IP page hero */
.ip-logo-band {
  background: var(--navy-50);
  padding: 64px 24px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--neutral-200);
}
.ip-logo-band img { display: block; width: 100%; max-width: 520px; height: auto; }
@media (max-width: 600px) { .ip-logo-band { padding: 40px 24px; } }
/* Image-flush containers */
.ip-art-flush { padding: 0; overflow: hidden; }
.card-art-flush { padding: 0; overflow: hidden; }
/* Trusted-logo sizing per brand */
.trusted-logo--sm  { height: 28px; }
.trusted-logo--md  { height: 52px; }

/* ── Character grid (IP product pages) ────────────────────── */
.char-section { padding: 72px 0; background: var(--neutral-50); border-top: 1px solid var(--neutral-200); }
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 900px) { .char-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .char-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
.char-card { display: flex; flex-direction: column; gap: 12px; }
.char-card-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--neutral-100);
}
.char-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.4;
}

/* ── Industry/applications grid ───────────────────────────── */
.ip-industries { padding: 64px 0; background: var(--neutral-50); border-top: 1px solid var(--neutral-200); }
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin-top: 40px;
}
.industry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 33.333%;
  padding: 14px 16px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}
.industry-item svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-600);
  flex-shrink: 0;
}
@media (max-width: 680px) { .industry-item { flex: 0 0 50%; } }
@media (max-width: 400px) { .industry-item { flex: 0 0 100%; } }

/* ── Upset Duck benefit card overrides ────────────────────── */
.ud-accent .benefit-card {
  grid-template-columns: 44px 1fr;
}
.ud-accent .benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-50);
  color: var(--gold-800);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 22px;
}
.ud-accent .benefit-icon svg { width: 22px; height: 22px; fill: currentColor; }



/* ── Typography system (single source for heading weights) ─────────────
   EN headings: Nunito (rounded, matches the logo) at heavy weights.
   TH headings: Noto Sans Thai one step lighter — Thai glyphs read heavier.
   !important so per-page/component rules can't drift from the system. */
h1, h2 { font-weight: 800 !important; letter-spacing: -0.01em; }
h3 { font-weight: 700 !important; }
:lang(th) h1, :lang(th) h2 { font-weight: 700 !important; letter-spacing: 0; }
:lang(th) h3 { font-weight: 600 !important; }

/* ── Line breaking ─────────────────────────────────────────────────────
   balance: headings split into even lines.
   pretty: paragraphs keep their full width and only avoid a lone last word. */
h1, h2, h3, h4, .kicker {
  text-wrap: balance;
}
p, li { text-wrap: pretty; }

/* ── Card actions sit on one baseline regardless of text length ─────── */
.case-card > .btn:last-child { margin-top: auto; align-self: flex-end; }

/* ── In-text links (case studies, news articles, policies) ───────────── */
.cs-content a:not(.btn), .article-page p a:not(.btn), .article-page li a:not(.btn), .policy-body a:not(.btn) {
  color: var(--red-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cs-content a:not(.btn):hover, .article-page p a:not(.btn):hover, .policy-body a:not(.btn):hover { color: var(--navy-900); }

/* ── Brand mark in page hero (About) ─────────────────────────────────── */
.hero-brand-mark { display: block; height: 52px; width: auto; margin-bottom: 22px; }
@media (max-width: 600px) { .hero-brand-mark { height: 40px; margin-bottom: 18px; } }
.nowrap { white-space: nowrap; }

/* Thai phrase wrapping (see RC_keepThaiPhrases in i18n.js): break lines at the
   spaces between Thai phrases, not inside them. */
.th-w, .th-k { white-space: nowrap; }
.th-w.th-long, .th-measuring .th-w { white-space: normal; }   /* phrase wider than its box */
:lang(th) .th-w, :lang(th) .th-k { font-family: inherit; }   /* beat ":lang(th) span" above */

/* ── Case studies (work/*) (shared; page-specific tweaks stay in each page) ── */
.cs-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 72px 0 64px;
}
.cs-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cs-hero-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.cs-hero-meta .tag {
  background: rgba(255,255,255,0.12);
  color: var(--gold-200);
  border: none;
}
.cs-hero-date {
  font-size: 13px;
  color: var(--navy-300);
}
.cs-hero-img img { width: 100%; height: auto; display: block; }
.cs-body { padding: 72px 0; }
.cs-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 14px;
  color: var(--navy-900);
}
.cs-content h2:first-child { margin-top: 0; }
.cs-content p {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.85;
  color: var(--neutral-700);
  margin: 0 0 16px;
}
.cs-content blockquote {
  border-left: 3px solid var(--gold-500);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--gold-50);
  border-radius: 0 8px 8px 0;
}
.cs-content blockquote p {
  font-family: inherit;
  font-size: 17px;
  font-style: italic;
  color: var(--navy-800);
  margin: 0;
}
.cs-caption {
  font-size: 12px;
  color: var(--neutral-400);
  text-align: center;
  margin: 0 0 32px;
}
.cs-sidebar { position: sticky; top: 88px; }
.cs-info-card {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 24px;
}
.cs-info-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin: 0 0 16px;
}
.cs-info-row { display: flex; flex-direction: column; gap: 16px; }
.cs-info-item-label {
  font-size: 11px;
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.cs-info-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}
.cs-divider { height: 1px; background: var(--neutral-200); margin: 20px 0; }
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-500);
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.cs-back:hover { color: var(--navy-800); }

/* ── Legal pages (privacy, cookies) (shared; page-specific tweaks stay in each page) ── */
.policy-page {
  background: #fff;
  border-top: 1px solid var(--neutral-200);
  padding: 72px 0 96px;
}
.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: 96px;
}
.policy-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-bottom: 12px;
}
.policy-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.policy-toc ol li a:hover {
  color: var(--navy-700);
  border-left-color: var(--gold-600);
}
.policy-toc-updated {
  font-size: 12px;
  color: var(--neutral-400);
  margin-top: 20px;
}
.policy-body {
  min-width: 0;
}
.policy-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--neutral-100);
}
.policy-body h2:first-child { margin-top: 0; border-top: none; }
.policy-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 24px 0 8px;
}
.policy-body p,
.policy-body li {
  font-family: inherit;
  font-size: 16px;
  color: var(--neutral-700);
  line-height: 1.8;
  margin: 0 0 12px;
}
.policy-body ul,
.policy-body ol {
  padding-left: 20px;
  margin: 0 0 14px;
}
.policy-body ul li, .policy-body ol li { margin-bottom: 6px; }
.policy-body a {
  color: var(--navy-600);
  text-decoration: underline;
}
.policy-body strong {
  font-weight: 600;
  color: var(--neutral-800);
}
.policy-notice {
  background: var(--neutral-50);
  border-left: 3px solid var(--gold-600);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.policy-notice p {
  margin: 0;
  font-size: 14px;
  color: var(--neutral-600);
}
@media (max-width: 860px) {
  .policy-layout { grid-template-columns: 1fr; gap: 32px; }
  .policy-toc { position: static; }
}

/* ── 404: "A wild 404 appeared!" ───────────────────────────────────── */
.nf { background: var(--navy-900); color: #fff; padding: 72px 0 96px; }
.nf-inner { max-width: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-code {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Nunito', sans-serif; font-weight: 900;
  font-size: clamp(88px, 18vw, 160px); line-height: 1; letter-spacing: -0.02em;
  color: var(--gold-200); margin-bottom: 40px;
}
.nf-ball {
  position: relative; display: inline-block;
  width: 0.78em; height: 0.78em; border-radius: 50%;
  background: linear-gradient(to bottom, var(--red-600) 0 46%, #111 46% 54%, #fff 54% 100%);
  box-shadow: inset 0 0 0 0.05em #111;
  transform-origin: 50% 100%;
  animation: nfWobble 2.6s ease-in-out infinite;
}
.nf-ball::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 0.24em; height: 0.24em; border-radius: 50%;
  background: #fff; border: 0.05em solid #111; transform: translate(-50%, -50%);
}
@keyframes nfWobble {
  0%, 55%, 100% { transform: rotate(0); }
  62% { transform: rotate(-18deg); }
  70% { transform: rotate(14deg); }
  78% { transform: rotate(-8deg); }
  86% { transform: rotate(4deg); }
}
.nf-dialog {
  position: relative; width: 100%; text-align: left;
  background: #fff; color: var(--navy-900);
  border-radius: 14px; padding: 22px 26px 26px;
  box-shadow: inset 0 0 0 4px var(--navy-900), inset 0 0 0 7px var(--gold-200);
  border: 3px solid var(--gold-200);
}
.nf-dialog h1 { font-size: clamp(22px, 3.6vw, 28px); font-weight: 800; color: var(--navy-900); margin-bottom: 8px; }
.nf-dialog p { font-size: 16px; color: var(--neutral-600); margin: 0; }
.nf-dialog-arrow {
  position: absolute; right: 20px; bottom: 12px; font-size: 12px; color: var(--red-600);
  animation: nfBlink 1s steps(2, start) infinite;
}
@keyframes nfBlink { to { visibility: hidden; } }
.nf-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 16px; }
.nf-menu a {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 14px 18px 14px 36px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff;
}
.nf-menu a strong { font-family: 'Nunito', 'Noto Sans Thai', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.nf-menu a > span { font-size: 13px; color: var(--navy-200); }
.nf-menu a::before {
  content: '▶'; position: absolute; left: 14px; top: 17px; font-size: 12px;
  color: var(--gold-200); opacity: 0; transition: opacity 0.15s ease;
}
.nf-menu a:hover, .nf-menu a:focus-visible { background: rgba(255,255,255,0.12); border-color: var(--gold-200); }
.nf-menu a:hover::before, .nf-menu a:focus-visible::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nf-ball, .nf-dialog-arrow { animation: none; }
}

/* ── Thai body text on articles and case studies: looped Thai ─────────
   Noto Sans Thai Looped is the looped twin of the heading font; Latin
   letters fall through to DM Sans. Headings and other pages are unchanged.
   The font is loaded only on news/* and work/* pages. */
:lang(th) .article-body :is(p, li, blockquote, .article-caption),
:lang(th) .cs-content :is(p, li, blockquote, .cs-caption) {
  font-family: 'Noto Sans Thai Looped', 'DM Sans', sans-serif;
}
:lang(th) .article-body :is(p, li, blockquote) :is(a, span, strong, em),
:lang(th) .cs-content :is(p, li, blockquote) :is(a, span, strong, em) {
  font-family: inherit;
}


/* ── Cookie consent banner (consent.js) ────────────────────────────── */
.rc-consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; color: var(--neutral-800);
  border: 1px solid var(--neutral-200); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(14, 21, 41, 0.22);
  padding: 20px 22px;
  font-size: 14px; line-height: 1.6;
}
.rc-consent-title { font-family: 'Nunito', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: 17px; color: var(--navy-900); margin: 0 0 6px; }
.rc-consent-text { margin: 0 0 16px; color: var(--neutral-600); }
.rc-consent-text a { color: var(--navy-600); text-decoration: underline; }
.rc-consent-settings { display: none; margin: 0 0 16px; border-top: 1px solid var(--neutral-200); }
.rc-consent.is-settings .rc-consent-settings { display: block; }
.rc-consent-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--neutral-200); cursor: pointer; }
.rc-consent-row-text { flex: 1; display: flex; flex-direction: column; }
.rc-consent-row-text strong { color: var(--navy-900); font-weight: 600; }
.rc-consent-row-text span { font-size: 13px; color: var(--neutral-600); }
.rc-consent-always { font-size: 12px; font-weight: 600; color: var(--neutral-600); white-space: nowrap; }
.rc-consent-switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; cursor: pointer;
  width: 40px; height: 22px; border-radius: 11px; background: var(--neutral-200); position: relative;
  transition: background 0.2s ease;
}
.rc-consent-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s ease;
}
.rc-consent-switch:checked { background: var(--navy-600); }
.rc-consent-switch:checked::after { transform: translateX(18px); }
.rc-consent-switch:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.rc-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-consent-actions .btn { padding: 9px 16px; font-size: 14px; }
.rc-consent-link { background: none; border: 0; padding: 9px 6px; font: inherit; font-size: 14px; color: var(--navy-600); text-decoration: underline; cursor: pointer; }
.rc-consent [data-act="save"] { display: none; }
.rc-consent.is-settings [data-act="save"] { display: inline-flex; }
.rc-consent.is-settings [data-act="settings"] { display: none; }
@media (max-width: 600px) {
  .rc-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .rc-consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-consent-switch, .rc-consent-switch::after { transition: none; }
}

/* ── Pokémon page: anime streaming partners ────────────────────────── */
.anime-partners { padding: 72px 0; background: var(--neutral-50); }
.anime-partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.anime-partner {
  background: #fff; border: 1px solid var(--neutral-200); border-radius: 14px;
  padding: 28px 28px 30px; display: flex; flex-direction: column; align-items: flex-start;
}
.anime-partner { overflow: hidden; }
.anime-partner-media {
  margin: -28px -28px 24px; width: calc(100% + 56px); aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--neutral-200); background: var(--neutral-50);
}
.anime-partner-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Portrait poster: shown whole, over a blurred copy that fills the 4:3 frame */
.anime-partner-media--portrait { position: relative; overflow: hidden; display: flex; justify-content: center; }
.anime-partner-media--portrait > .anime-partner-backdrop {
  position: absolute; inset: 0; filter: blur(22px) saturate(1.15); transform: scale(1.2); opacity: .9;
}
.anime-partner-media--portrait > img:not(.anime-partner-backdrop) {
  position: relative; width: auto; max-width: 100%; height: 100%; object-fit: contain;
  box-shadow: 0 8px 28px rgba(14, 21, 41, .28);
}
.anime-partner-brand { display: flex; align-items: center; gap: 14px; height: 44px; margin-bottom: 18px; }
.anime-partner-brand img { height: auto; width: auto; max-height: 100%; max-width: 140px; display: block; }
.anime-partner-x { font-size: 18px; color: var(--neutral-400, #9aa3b5); }
.anime-partner h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.anime-partner p { font-size: 15px; color: var(--neutral-600); line-height: 1.65; margin: 0; }
@media (max-width: 720px) { .anime-partners-grid { grid-template-columns: 1fr; } }

/* ── Pokémon events (Pokémon page) ──────────────────────────── */
.pokemon-events { padding: 72px 0; background: #fff; }
.pokemon-events-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (max-width: 720px) { .pokemon-events-grid { grid-template-columns: 1fr; } }

.pokemon-ecosystem-more { margin-top: 36px; text-align: center; }

/* ── Partner with us (for IP owners) ────────────────────────── */
.pw-hero-actions { margin-top: 28px; }
.pw-why { padding: 80px 0; }
.pw-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pw-why-card { background: #fff; border: 1px solid var(--neutral-200); border-radius: 14px; padding: 30px 28px; }
.pw-why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-50); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pw-why-icon svg { width: 26px; height: 26px; fill: var(--gold-800); }
.pw-why-card h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; line-height: 1.35; }
.pw-why-card p { font-size: 16px; color: var(--neutral-600); line-height: 1.7; }

.pw-svc-section { padding: 80px 0; background: #fff; border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); }
.pw-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 44px; }
.pw-svc { border-top: 2px solid var(--navy-900); padding-top: 18px; }
.pw-svc-num { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; color: var(--red-600); margin-bottom: 8px; }
.pw-svc h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.pw-svc p { font-size: 15px; color: var(--neutral-600); line-height: 1.7; }

.pw-net { padding: 80px 0; }
.pw-net-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pw-net-group { background: #fff; border: 1px solid var(--neutral-200); border-radius: 14px; padding: 20px 22px 24px; }
.pw-net-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-800); margin-bottom: 16px; }
.pw-net-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.pw-net-logos img { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; }

.pw-work { padding: 80px 0; background: #fff; border-top: 1px solid var(--neutral-200); }
.pw-work-grid { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.pw-news { margin-top: 28px; font-size: 15px; color: var(--neutral-600); }
.pw-news a { color: var(--navy-900); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .pw-net-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .pw-why-grid, .pw-svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pw-net-grid, .pw-work-grid { grid-template-columns: 1fr; }
}

/* ── Pokémon logo on a halftone panel (Characters card + Pokémon page band) ──
   Sky-blue gradient with white halftone dots that fade in towards the bottom,
   and a soft white glow behind the logo to keep its clear space. */
.pk-halftone { position: relative; isolation: isolate; background: linear-gradient(180deg, #EEF8FE 0%, #BEE2F6 100%); }
.pk-halftone::before,
.pk-halftone::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pk-halftone::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 34%, transparent 36%),
    radial-gradient(circle, rgba(255,255,255,0.8) 0 22%, transparent 24%);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 90%);
          mask-image: linear-gradient(180deg, transparent 5%, #000 90%);
}
.pk-halftone::after { background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%); }
.pk-halftone img { position: relative; background: transparent !important; filter: drop-shadow(0 6px 12px rgba(42, 117, 187, 0.22)); }

.anime-partners-cta { margin-top: 36px; text-align: center; }
