/* ============================================================
   bebe — component styles (nav, hero, work, team, careers, footer)
   ============================================================ */

/* ---- light theme component overrides ---- */

/* nav */
[data-theme="light"] .nav.is-scrolled {
  background: rgba(250, 250, 248, 0.88);
  border-bottom-color: rgba(30, 24, 18, 0.10);
}

/* buttons */
[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(30, 24, 18, 0.20);
  color: var(--text);
}
[data-theme="light"] .btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* hero stage */
[data-theme="light"] .stage-ring {
  border-color: rgba(30, 24, 18, 0.12);
}
[data-theme="light"] .speech {
  background: #1c1813;
  color: #fafaf8;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
[data-theme="light"] .orbit-chip {
  background: rgba(255,255,255,0.80);
  border-color: rgba(30, 24, 18, 0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
[data-theme="light"] .hero-marquee {
  border-color: rgba(30, 24, 18, 0.10);
}

/* project cards — keep preview panels dark (they're mini UIs) but lighten surrounds */
[data-theme="light"] .proj {
  background: var(--surface);
  border-color: rgba(30, 24, 18, 0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
[data-theme="light"] .proj:hover {
  box-shadow: 0 24px 56px -16px rgba(0,0,0,.14);
}
[data-theme="light"] .proj-preview {
  background:
    radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--p-accent) 10%, transparent), transparent 60%),
    #f0ede8;
  border-bottom-color: rgba(30, 24, 18, 0.10);
}
[data-theme="light"] .proj-body { border-color: rgba(30, 24, 18, 0.08); }
[data-theme="light"] .proj-tags span { border-color: rgba(30, 24, 18, 0.12); color: var(--text-dim); }
[data-theme="light"] .proj-cta { border-top-color: rgba(30, 24, 18, 0.10); }

/* pillars */
[data-theme="light"] .pillar { border-top-color: rgba(30, 24, 18, 0.14); }

/* team */
[data-theme="light"] .member {
  background: var(--surface);
  border-color: rgba(30, 24, 18, 0.10);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* careers */
[data-theme="light"] .careers-inner {
  background: var(--surface);
  border-color: rgba(30, 24, 18, 0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
[data-theme="light"] .role-row { border-color: rgba(30, 24, 18, 0.10); }

/* footer */
[data-theme="light"] .footer { border-top-color: rgba(30, 24, 18, 0.10); }

/* chips */
[data-theme="light"] .chip.commission {
  background: rgba(0,0,0,.04);
  border-color: rgba(30, 24, 18, 0.14);
}

/* ---- theme toggle button ---- */
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  transform: rotate(18deg);
}
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.04);
}

/* display font toggle */
:root[data-display="serif"] .hero-h1,
:root[data-display="serif"] .sec-head h2,
:root[data-display="serif"] .cc-h,
:root[data-display="serif"] .careers h2 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-style: normal;
}
:root[data-display="serif"] .hero-h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; }

/* motion toggle */
:root[data-motion="off"] .mascot-float,
:root[data-motion="off"] .stage-ring,
:root[data-motion="off"] .mq-track { animation: none !important; }

/* ---------------- NAV ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 0;
  transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10,10,13,0.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 16px var(--accent-line)); }
.logo-mascot { filter: drop-shadow(0 4px 12px var(--accent-line)); width: 40px; height: 40px; }
.logo-mascot svg { overflow: visible; }
.logo-word { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.logo-dot { color: var(--accent); }
.logo-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.16em; text-transform: uppercase; padding-top: 4px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------- HERO ---------------- */
.hero { padding: clamp(120px, 17vh, 190px) 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

.hero-h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1.0; letter-spacing: -0.035em;
  font-weight: 600; margin: 26px 0 0; }
.hero-em { color: var(--accent); font-size: 1.04em; }
.hero-sub { font-size: clamp(17px, 1.55vw, 21px); color: var(--text-dim); max-width: 500px; margin-top: 26px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 44px; }
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.1em; }
.hm-div { width: 1px; height: 32px; background: var(--line); }

/* hero stage */
.hero-stage { position: relative; height: 460px; display: grid; place-items: center; }
.stage-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.stage-ring.r1 { width: 360px; height: 360px; animation: spin 36s linear infinite; }
.stage-ring.r2 { width: 470px; height: 470px; border-style: dashed; border-color: var(--line);
  animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.mascot-float { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
@keyframes float { 0%,100%{ transform: translateY(-8px); } 50%{ transform: translateY(10px); } }

.speech { position: absolute; top: 36px; right: 18%; background: #f4f1ec; color: #1a1a21;
  font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 12px 12px 12px 3px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: float 6s ease-in-out infinite .8s; }
.speech-spark { color: var(--mint); }

.orbit-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px 7px 8px; box-shadow: 0 14px 30px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.orbit-chip .oc-icon { display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.05); }
.orbit-chip .oc-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; font-weight: 500; }
.oc-1 { top: 22%; left: -2%; animation: float 7s ease-in-out infinite; }
.oc-2 { bottom: 20%; left: 6%; animation: float 6.5s ease-in-out infinite .5s; }
.oc-3 { bottom: 28%; right: -4%; animation: float 7.4s ease-in-out infinite 1s; }

/* hero marquee */
.hero-marquee { margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: inline-flex; animation: marquee 30s linear infinite; }
.mq-set { font-family: var(--font-mono); font-size: 14px; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase; }
.mq-set em { color: var(--text-dim); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stage { height: 340px; order: -1; }
  .mascot-float svg { width: 230px; height: 230px; }
  .stage-ring.r1 { width: 290px; height: 290px; } .stage-ring.r2 { width: 370px; height: 370px; }
}

@media (max-width: 920px) {
  .oc-1 { left: 2%; }
  .oc-3 { right: 0%; }
}

/* ---------------- STUDIO ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.pillar { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.pillar-k { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.pillar h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 10px; }
.pillar p { color: var(--text-dim); font-size: 16px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------- PROJECTS ---------------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }

.proj { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; }
.proj::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, var(--p-accent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.proj:hover { transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.proj:hover::before { opacity: 1; }

.proj-preview { height: 220px; padding: 22px; background:
  radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--p-accent) 14%, transparent), transparent 60%),
  var(--bg-2); border-bottom: 1px solid var(--line); display: grid; place-items: stretch; overflow: hidden; }

.proj-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; }
.proj-name { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 16px 0 0;
  display: flex; align-items: center; gap: 12px; }
.proj-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: color-mix(in srgb, var(--p-accent) 14%, transparent); }
.proj-tagline { font-size: 17px; color: var(--text); font-weight: 500; margin-top: 10px; }
.proj-desc { color: var(--text-dim); font-size: 15px; margin-top: 8px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj-tags span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.proj-cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 15px; color: var(--p-accent); display: inline-flex; align-items: center; gap: 8px; }
.proj-cta .arrow { transition: transform .25s; }
.proj:hover .proj-cta .arrow { transform: translate(3px, -3px); }

/* preview internals */
.pv { width: 100%; border-radius: 12px; background: #0f1117; border: 1px solid var(--line);
  font-family: var(--font-mono); overflow: hidden; display: flex; flex-direction: column; }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 11px;
  color: var(--text-dim); border-bottom: 1px solid var(--line); letter-spacing: 0.04em; }
.pv-bar .pv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); }
.pv-live { margin-left: auto; color: var(--mint); font-size: 9px; letter-spacing: 0.12em; }

/* arqi preview */
.pv-arqi { background: linear-gradient(160deg, #0b2740, #0f1117); }
.pv-hero { padding: 16px 14px 12px; text-align: center; background: linear-gradient(180deg, rgba(43,168,255,.16), transparent); }
.pv-h1 { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -0.02em; }
.pv-h2 { font-size: 10px; color: var(--arqi-blue); margin-top: 4px; }
.pv-nav { display: flex; gap: 14px; justify-content: center; padding: 8px; font-size: 9px; color: var(--text-faint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-nav .on { color: var(--arqi-blue); }
.pv-rows { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-rows span { display: flex; align-items: center; gap: 10px; font-size: 8px; color: var(--text-faint); }
.pv-rows i { width: 30px; font-style: normal; }
.pv-rows b { height: 6px; flex: 1; border-radius: 3px; background: rgba(43,168,255,.3); }
.pv-rows b.cta { flex: none; height: auto; padding: 4px 8px; font-size: 8px; color: var(--arqi-blue);
  background: rgba(43,168,255,.14); border: 1px solid rgba(43,168,255,.4); }

/* helm preview */
.kanban { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 12px; flex: 1; }
.kcol-h { font-size: 9px; color: var(--text-dim); display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcol-h em { font-style: normal; color: var(--accent); }
.kcard { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin-bottom: 6px; }
.kbar { display: block; height: 4px; border-radius: 2px; background: var(--accent); opacity: .7; }

/* scout preview */
.scout-search { margin: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 11px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; color: var(--text-dim); }
.scout-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.scout-item { display: flex; align-items: center; gap: 9px; }
.si-pin { width: 8px; height: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--mint); flex: none; }
.si-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.si-score { margin-left: auto; font-size: 10px; color: var(--mint); }

/* custom preview */
.pv-custom .code { padding: 16px; font-size: 12px; line-height: 1.9; flex: 1; }
.pv-custom .ind { padding-left: 18px; }
.pv-custom .cm { color: var(--text-faint); }
.pv-custom .kw { color: var(--arqi-blue); }
.pv-custom .fn { color: var(--accent-2); }
.pv-custom .ar { color: var(--mint); }

/* ---------------- TEAM ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .3s, border-color .3s; }
.member:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.member-photo { width: 84px; height: 84px; border-radius: 50%; padding: 3px;
  background: linear-gradient(150deg, var(--m-accent), transparent); margin-bottom: 18px; }
.member-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; outline: none; border-radius: 4px; }
.member-name:focus { box-shadow: 0 0 0 2px var(--accent-line); }
.member-role { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 4px; letter-spacing: 0.04em; }
.member-note { color: var(--text-dim); font-size: 14px; margin-top: 12px; }

/* ---------------- CAREERS ---------------- */
.careers-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 60px); }
@media (max-width: 820px) { .careers-inner { grid-template-columns: 1fr; gap: 32px; } }
.careers-copy h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; margin: 16px 0 18px; }
.careers-copy p { color: var(--text-dim); margin-bottom: 26px; max-width: 420px; }
.roles { display: flex; flex-direction: column; gap: 0; }
.role-row { display: flex; align-items: center; gap: 14px; padding: 18px 4px; border-top: 1px solid var(--line); transition: padding .25s; }
.role-row:hover { padding-left: 12px; }
.role-row:last-of-type { border-bottom: 1px solid var(--line); }
.role-t { font-size: 17px; font-weight: 600; }
.role-d { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-left: auto; }
.role-go { color: var(--accent); transition: transform .25s; }
.role-row:hover .role-go { transform: translateX(4px); }
.role-spec { margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.role-spec a { color: var(--accent); }

/* ---------------- CONTACT + FOOTER ---------------- */
.contact-cta { position: relative; }
.cc-inner { text-align: center; padding: clamp(70px, 11vw, 130px) 0 90px; display: flex; flex-direction: column; align-items: center; }
.cc-mascot { margin-bottom: 8px; animation: float 6s ease-in-out infinite; }
.cc-h { font-size: clamp(40px, 7vw, 88px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; margin-top: 14px; }
.cc-sub { color: var(--text-dim); font-size: 18px; margin-top: 20px; }
.cc-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 40px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .logo-word { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin: 14px 0; max-width: 340px; }
.footer-copy { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text-dim); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }




