/* CPM-globearound · shared styles for index, index_en, allcreators, mediakits
   Palette derived from the CPM logo (sage + gold). Radius system:
   buttons/pills = full pill, cards/panels = 20px, inputs = 12px. */

:root {
  --bg: #f3f4f0;
  --surface: #fbfbf8;
  --surface-2: #e8ece6;
  --ink: #1c2321;
  --muted: #56615c;
  --line: rgba(28, 35, 33, 0.12);
  --accent: #2f5d55;
  --accent-hover: #244a43;
  --accent-soft: #dbe6e1;
  --on-accent: #fbfbf8;
  --gold: #a8844d;
  --shadow: 0 18px 50px -24px rgba(31, 60, 54, 0.35);
  --r-card: 20px;
  --r-input: 12px;
  --max: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --surface: #181e1c;
    --surface-2: #1f2724;
    --ink: #eaeeeb;
    --muted: #a4aea9;
    --line: rgba(234, 238, 235, 0.12);
    --accent: #8dc2b4;
    --accent-hover: #a6d3c7;
    --accent-soft: #22322e;
    --on-accent: #0f1513;
    --gold: #d2b27a;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.script { font-family: "Great Vibes", cursive; font-weight: 400; color: var(--gold); line-height: 1.1; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.body { color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
em.hl { font-style: normal; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: 0.97rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.72rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.93rem; }
.nav-links a, .nav-links button.linklike { color: var(--muted); background: none; border: 0; cursor: pointer; transition: color 0.2s; }
.nav-links a:hover, .nav-links button.linklike:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; padding: 0 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink) !important;
}
.lang:hover { border-color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease), background-color 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a, .mobile-nav button.linklike {
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; padding: 0.75rem 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink);
}
.mobile-nav .btn { margin-top: 1.5rem; font-size: 1rem; }
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }

/* ---------- brands strip ---------- */
.brands { padding-block: 2.5rem; border-block: 1px solid var(--line); }
.brands-inner { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 2rem; align-items: center; }
.brands p { color: var(--muted); font-size: 0.95rem; }
.brands-logos { background: #fbfbf8; border-radius: var(--r-card); padding: 1rem 1.25rem; }
.brands-logos img { width: 100%; height: auto; }
@media (max-width: 760px) { .brands-inner { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- management ---------- */
.mgmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.quote {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
  padding-left: 1.4rem; border-left: 3px solid var(--accent);
}
.quote-note { margin-top: 1.5rem; color: var(--muted); max-width: 46ch; }
.mgmt-copy { display: grid; gap: 1.25rem; }
.mgmt-copy p { color: var(--muted); }
.mgmt-copy strong { color: var(--ink); font-weight: 600; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.35rem 1.4rem; }
.pillar strong { display: block; font-size: 1.08rem; margin-bottom: 0.25rem; }
.pillar span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .mgmt-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-intro { display: grid; gap: 1.25rem; }
.contact-intro .script { font-size: 2.1rem; margin-bottom: -0.6rem; }
.contact-mail { font-weight: 500; color: var(--accent); border-bottom: 1px solid currentColor; justify-self: start; word-break: break-all; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-input);
  padding: 0.85rem 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { resize: vertical; min-height: 140px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form .btn { width: 100%; margin-top: 0.3rem; }
.form-ok { display: none; padding: 1rem 1.15rem; border-radius: var(--r-input); background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.form-ok.show { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.foot-grid ul { list-style: none; display: grid; gap: 0.45rem; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-brand .script { font-size: 2.2rem; display: block; margin-bottom: 0.3rem; }
.foot-brand p { color: var(--muted); max-width: 40ch; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- chat ---------- */
.chat-bubble {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.2rem;
  border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: var(--bg); font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease);
}
.chat-bubble:hover { transform: translateY(-2px); }
.chat-bubble i { font-size: 1.2rem; }
.chat {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 61;
  width: min(370px, calc(100vw - 2rem)); height: min(540px, calc(100dvh - 7rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.chat.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem 0.9rem 1.2rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.chat-head button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--bg); }
.msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 16px; font-size: 0.94rem; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; }
.msg.user { margin-left: auto; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.msg.typing { color: var(--muted); }
.chat-input { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 0.65rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { border: 0; border-radius: 999px; padding: 0 1.1rem; background: var(--accent); color: var(--on-accent); font-weight: 500; cursor: pointer; }
@media (max-width: 640px) {
  .chat-bubble { width: 52px; height: 52px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .chat-bubble i { font-size: 1.5rem; }
  .chat-bubble { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  body.hero-in-view .chat-bubble { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
@media (max-width: 520px) {
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(78dvh, 620px); border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  body.chat-open .chat-bubble { opacity: 0; pointer-events: none; }
}

/* ---------- page: creators ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .inner { display: grid; gap: 1.25rem; max-width: 820px; }
.page-hero .script { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: -0.5rem; }
.creator-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.creator { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.creator figure { aspect-ratio: 4 / 3.6; overflow: hidden; background: var(--surface-2); }
.creator img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.9s var(--ease); }
.creator:hover img { transform: scale(1.035); }
.creator-body { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; }
.creator-body h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.niche { color: var(--accent); font-weight: 500; font-size: 0.95rem; margin-top: -0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.8rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.creator-body p { color: var(--muted); }
.creator-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.creator-actions .btn { flex: 1 1 auto; }
.creator.feature { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1.1fr; }
.creator.feature figure { aspect-ratio: auto; min-height: 460px; }
.creator.feature .creator-body { align-content: center; }
@media (max-width: 860px) {
  .creator-list { grid-template-columns: 1fr; }
  .creator.feature { grid-template-columns: 1fr; }
  .creator.feature figure { min-height: 0; aspect-ratio: 4 / 3.6; }
}
.cta-band { background: var(--surface-2); border-radius: var(--r-card); padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(4rem, 8vw, 7rem); }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 22ch; }
.cta-band .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 480px) { .cta-band .actions, .cta-band .actions .btn { width: 100%; } }

/* ---------- page: media kits ---------- */
.kit-group { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.kit-group > h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 1.25rem; color: var(--muted); font-weight: 500; }
.kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kit { display: grid; gap: 0.8rem; padding: 0.6rem 0.6rem 1.1rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.35s var(--ease); }
.kit:hover { border-color: var(--accent); transform: translateY(-3px); }
.kit figure { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.kit img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.kit.logo figure { display: grid; place-items: center; background: #1c2321; }
.kit.logo img { width: 70%; height: auto; object-fit: contain; }
.kit-meta { padding-inline: 0.5rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.kit-meta strong { font-weight: 600; display: block; line-height: 1.3; }
.kit-meta span { color: var(--muted); font-size: 0.85rem; }
.kit-meta i { color: var(--accent); font-size: 1.2rem; flex: none; }
.kit-note { display: flex; gap: 0.6rem; align-items: center; color: var(--muted); font-size: 0.92rem; margin-top: -0.5rem; margin-bottom: 2.5rem; }
.kit-note i { color: var(--accent); font-size: 1.15rem; }
@media (max-width: 960px) { .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } .kit-meta span { display: none; } }

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.kit, .kit-meta > div { min-width: 0; }
.kit-meta strong, .creator-body h2 { overflow-wrap: anywhere; }
