/* =========================================================
   CAELTHIC — NATIVE MOBILE LAYER (readable, thumb-first)
   Scoped under body.m; only the Mobile inner app loads this.
   Rendered at real device width inside the phone frame, so
   all type stays at native, legible sizes (no shrinking).
   ========================================================= */

body.m { font-size: 15px; }
body.m .app { max-width: 100%; }
body.m .scene3d .obj:nth-child(n+3) { display: none; } /* keep bg calm on phones */
body.m .wrap { padding: 0 18px; }
body.m .section { padding: 34px 0; }
body.m .section-sm { padding: 18px 0; }

body.m .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
body.m .sec-head h2 { font-size: 26px; max-width: none; line-height: 1.08; }
body.m .sec-head .sub { font-size: 14.5px; max-width: none; }
body.m .eyebrow { font-size: 11px; }

/* ---------- header: brand row + actions row + burger ---------- */
body.m .header { padding-top: env(safe-area-inset-top, 0px); }
body.m .header-in { height: auto; min-height: 56px; padding: 10px 0; gap: 9px 8px; flex-wrap: wrap; align-items: center; }
body.m .brand { flex: 1 1 auto; gap: 11px; }
body.m .brand-coin-img { width: 36px; height: 36px; }
body.m .brand-txt .name { font-size: 15px; letter-spacing: 0.24em; }
body.m .brand-txt .tag { font-size: 9.5px; }
body.m .socials { display: none; }
body.m .nav { display: none; }
body.m .header-right { width: 100%; gap: 10px; order: 3; }
body.m .lang { display: flex; padding: 3px; }
body.m .lang button { padding: 8px 13px; font-size: 11px; }
body.m .header-cta { flex: 1; padding: 12px 14px; font-size: 12px; white-space: nowrap; text-align: center; }

/* hamburger button (injected on mobile) */
body.m .mnav-burger {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
  transition: border-color 0.25s, background 0.25s;
}
body.m .mnav-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--gold-light); transition: transform 0.3s var(--ease), opacity 0.2s; }
body.m .mnav-burger:active { background: rgba(216,169,78,0.12); border-color: rgba(216,169,78,0.4); }

/* full-screen menu overlay */
.mnav-ov { position: fixed; inset: 0; z-index: 200; background: rgba(4,4,3,0.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.mnav-ov.on { opacity: 1; pointer-events: auto; }
.mnav-panel { position: absolute; top: 0; right: 0; height: 100%; width: 78%; max-width: 320px;
  background: linear-gradient(160deg, rgba(22,18,11,0.98), rgba(8,7,5,0.99)); border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9); padding: 22px; transform: translateX(100%); transition: transform 0.36s var(--ease);
  display: flex; flex-direction: column; }
.mnav-ov.on .mnav-panel { transform: translateX(0); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mnav-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.mnav-x { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--gold-light); font-size: 15px; }
.mnav-list { display: flex; flex-direction: column; gap: 4px; }
.mnav-link { text-align: left; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ece3d2; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; padding: 16px 4px; transition: color 0.2s, padding 0.2s; }
.mnav-link:active { color: var(--gold-light); padding-left: 12px; }
.mnav-cta { margin-top: auto; padding: 15px; border-radius: 999px; border: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #1a1206; background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); }

/* ---------- hero: badge → headline → intro → CTA → metrics ---------- */
body.m .hero { padding: 16px 0 18px; }
/* above-the-fold content must never wait on scroll-reveal */
body.m .hero .reveal { opacity: 1 !important; transform: none !important; }
body.m .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
body.m .scene3d { display: none; }                 /* no faint background rings on phone */
body.m .orbit-wrap { display: none; }               /* desktop 600px stage doesn't belong on a phone */
body.m .hero-wordmark { display: none; }            /* brand already lives in the header */

body.m .hero-badge { font-size: 10px; padding: 7px 12px; letter-spacing: 0.01em; }
body.m .hero h1 { font-size: 34px; line-height: 1.04; margin-top: 14px; max-width: none; }
body.m .hero .intro { font-size: 16px; line-height: 1.55; margin-top: 14px; max-width: none; }
body.m .hero .painbox { margin-top: 16px; padding: 14px 16px; max-width: none; }
body.m .hero .painbox p { font-size: 14px; }
body.m .hero-cta { flex-direction: column; gap: 10px; margin-top: 20px; }
body.m .hero-cta .btn { width: 100%; padding: 16px; }
body.m .metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; max-width: none; }
body.m .metric { padding: 15px; }
body.m .metric .num { font-size: 24px; }

/* ---------- directions / growth ecosystem (own section, after hero) ---------- */
.m-dirs { padding: 8px 0 2px; }
.m-dirs .md-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.m-dirs .md-head::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.m-dirs .md-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-dirs .md-tile { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 50%), rgba(20,16,10,0.66);
  transition: border-color 0.25s, transform 0.25s; }
.m-dirs .md-tile:active { border-color: rgba(216,169,78,0.5); transform: translateY(-2px); }
.m-dirs .md-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(216,169,78,0.4); background: linear-gradient(150deg, #241a0c, #060503); }
.m-dirs .md-ic svg { width: 22px; height: 22px; }
.m-dirs .md-lb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: #e7ddc9; line-height: 1.2; }

/* ---------- pain ---------- */
body.m .grid-3 { grid-template-columns: 1fr; gap: 12px; }
body.m .pain-card { padding: 18px; }
body.m .pain-card h3 { font-size: 18px; }

/* ---------- services: inline expand ---------- */
body.m .grid-svc { grid-template-columns: 1fr; gap: 12px; }
body.m .svc { min-height: 0; padding: 18px; cursor: pointer; }
body.m .svc h3 { font-size: 20px; }
body.m .svc .short { font-size: 14px; margin-top: 10px; }
body.m .svc-detail { position: static; inset: auto; margin-top: 14px; padding: 14px 0 0; background: transparent; border: none; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; animation: none; }
body.m .svc-detail .dh { margin-bottom: 12px; }

/* ---------- process: vertical timeline ---------- */
body.m .pipeline-line { display: none; }
body.m .steps { grid-template-columns: 1fr; gap: 20px; position: relative; }
body.m .steps::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(rgba(216,169,78,0.42), rgba(216,169,78,0.08)); }
body.m .step { position: relative; padding-left: 44px; text-align: left; }
body.m .bulb { position: absolute; left: 0; top: 0; margin: 0; }
body.m .step h3 { font-size: 19px; }
body.m .step p { font-size: 14px; margin-top: 8px; }

/* ---------- cases ---------- */
body.m .grid-2 { grid-template-columns: 1fr; gap: 16px; }
body.m .case-body { padding: 22px; }
body.m .case-body h3 { font-size: 21px; }
body.m .case-scope ul { grid-template-columns: 1fr; gap: 9px; }
body.m .case-stats { gap: 10px; }
body.m .cstat { padding: 13px 14px; }
body.m .cstat .cv { font-size: 22px; }

/* ---------- reviews ---------- */
body.m .review { width: 268px; padding: 20px; }
body.m .review p { min-height: 0; font-size: 14px; }
body.m .marquee-track { animation-duration: 50s; }

/* ---------- team: compact 2-col tiles ---------- */
body.m .grid-team { grid-template-columns: 1fr 1fr; gap: 10px; }
body.m .role { padding: 15px 14px; }
body.m .role-top { margin-bottom: 10px; }
body.m .role-ico { width: 38px; height: 38px; }
body.m .role-ico svg { width: 21px; height: 21px; }
body.m .role-dots { display: none; }
body.m .role h3 { font-size: 14.5px; line-height: 1.15; }
body.m .role p { font-size: 11.5px; line-height: 1.4; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.m .role-skills { margin-top: 9px; gap: 5px; }
body.m .role .skill { font-size: 9px; padding: 3px 7px; }

/* ---------- stack ---------- */
body.m .stack-tag { font-size: 12.5px; padding: 10px 14px; }

/* ---------- trust ---------- */
body.m .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 20px; }
body.m .stat-tile { padding: 18px 16px; }
body.m .stat-tile .sv { font-size: 27px; }
body.m .stat-tile .sl { font-size: 12.5px; }
body.m .stat-tile .st-ico { width: 32px; height: 32px; top: 14px; right: 14px; border-radius: 9px; }
body.m .trust-grid { grid-template-columns: 1fr; gap: 14px; }
body.m .trust { padding: 24px; }
body.m .trust h3 { font-size: 20px; }

/* ---------- contact ---------- */
body.m .contact-grid { grid-template-columns: 1fr; gap: 26px; }
body.m .contact-left h2 { font-size: 28px; max-width: none; }
body.m .contact-left p { font-size: 15.5px; max-width: none; }
body.m .contact-points li { font-size: 14.5px; }
body.m .form-panel { padding: 22px; }
body.m .field-row { grid-template-columns: 1fr; gap: 0; }
body.m .field input, body.m .field textarea, body.m .field select { font-size: 16px; padding: 14px 15px; }
body.m .opt { font-size: 13px; padding: 11px 15px; }

/* ---------- quiz: bottom sheet ---------- */
body.m .quiz { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; max-height: 84vh; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
body.m .quiz h4 { font-size: 19px; }
body.m .qopt { padding: 13px 14px; font-size: 14px; }

/* ---------- secure deal ---------- */
body.m .deal-flow { grid-template-columns: 1fr; gap: 12px; }
body.m .deal-step { padding: 18px; }
body.m .deal-step .ds-num { font-size: 28px; }
body.m .deal-step h3 { font-size: 18px; }
body.m .deal-step p { font-size: 14px; }
body.m .deal-badges { gap: 8px; margin-top: 18px; }
body.m .deal-badge { font-size: 11.5px; padding: 9px 13px; }
body.m .deal-foot { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 22px; padding-top: 22px; }
body.m .deal-foot .btn { width: 100%; }
body.m .deal-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
body.m .deal-stat { padding: 16px 12px; }
body.m .deal-stat .dsv { font-size: 24px; }
body.m .deal-stat .dsl { font-size: 11.5px; }

/* ---------- footer ---------- */
body.m .footer { padding: 30px 0 100px; }
body.m .footer-in { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 12px; }

/* ---------- sticky bottom conversion bar ---------- */
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(6,6,5,0.99), rgba(6,6,5,0.92) 64%, transparent);
  transform: translateY(130%); transition: transform 0.42s var(--ease); pointer-events: none; }
.m-bar.on { transform: translateY(0); pointer-events: auto; }
.m-bar-cta { width: 100%; border: none; border-radius: 999px; padding: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 52%, var(--gold-deep));
  box-shadow: 0 16px 38px -12px rgba(216,169,78,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.m-bar-cta:active { transform: scale(0.98); }

/* ── custom overrides ── */
.twk-panel { display: none !important; }
body.m .header,
body.m .header.scrolled {
  background: #060605;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(216,169,78,0.16);
}

/* тёмный холст во всех браузерах (фикс белого фона на мобиле) */
html { background: #060605; color-scheme: dark; }
