/* ==========================================================================
   orb.css — layered depth explorer (sticky Three.js orb + reveal panels)
   Cyan accent (#06b6d4) per spec, scoped to this section.
   ========================================================================== */
.experience {
  --cy: #06b6d4;
  --cy-rgb: 6, 182, 212;
  position: relative;
  height: 560vh;                 /* scroll runway for the descent */
  background: var(--bg-primary);
}

.orb-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

#orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* glow aura behind/around the orb — intensity driven by --g from JS */
.orb-aura {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(var(--cy-rgb), calc(var(--g, 0.3) * 0.28)) 0%,
    rgba(var(--cy-rgb), calc(var(--g, 0.3) * 0.06)) 38%,
    transparent 60%);
  transition: background 0.4s var(--ease-soft);
}
.orb-aura.pulse { animation: orb-pulse 2.4s ease-in-out infinite; }
@keyframes orb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---- depth rail (left) ------------------------------------------------- */
.orb-rail {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 3; list-style: none; display: flex; flex-direction: column; gap: var(--lg);
}
.orb-rail li {
  display: flex; align-items: center; gap: var(--sm);
  color: var(--text-faint); opacity: 0.5; cursor: pointer;
  transition: color 0.4s, opacity 0.4s, transform 0.4s var(--ease);
}
.orb-rail li::before {
  content: ""; width: 8px; height: 2px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.orb-rail .r-n { font-size: 0.72rem; letter-spacing: 0.1em; }
.orb-rail .r-l { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; }
.orb-rail li.active {
  color: var(--cy); opacity: 1; transform: translateX(4px);
  text-shadow: 0 0 12px rgba(var(--cy-rgb), 0.6);
}
.orb-rail li.active::before { width: 26px; }
.orb-rail li:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }

/* ---- caption ---------------------------------------------------------- */
.orb-caption {
  position: absolute; bottom: var(--lg); left: 50%; transform: translateX(-50%);
  z-index: 3; text-align: center; display: flex; flex-direction: column; gap: 4px;
  color: var(--text-faint);
}
.orb-caption .oc-eyebrow { color: var(--cy); letter-spacing: 0.16em; }

/* ---- reveal panels (right) -------------------------------------------- */
.orb-panels {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 4; width: min(420px, 40vw); max-height: 82vh; display: grid;
}
.orb-panel {
  grid-area: 1 / 1;                 /* stack & crossfade */
  opacity: 0; transform: translateY(22px); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  overflow: auto; max-height: 82vh; padding-right: 4px;
}
.orb-panel.active { opacity: 1; transform: none; pointer-events: auto; }

.op-tier { color: var(--cy); letter-spacing: 0.14em; }
.op-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: var(--sm) 0; letter-spacing: -0.02em; }
.op-blurb { color: var(--text-secondary); font-size: 0.95rem; max-width: 40ch; }
.op-note {
  margin-top: var(--md); color: var(--cy);
  border: 1px dashed rgba(var(--cy-rgb), 0.5); border-radius: var(--r-std);
  padding: 8px 12px; display: inline-block; letter-spacing: 0.06em;
}

/* ---- project cards ---------------------------------------------------- */
.orb-cards { display: flex; flex-direction: column; gap: var(--md); margin-top: var(--lg); }
.orb-card {
  display: grid; grid-template-columns: 60px 1fr; gap: var(--md);
  background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--r-std);
  padding: var(--md); cursor: pointer;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.orb-card:hover, .orb-card:focus-visible {
  border-color: var(--cy); transform: translateX(-4px); outline: none;
  box-shadow: -6px 6px 0 rgba(var(--cy-rgb), 0.25);
}
.oc-thumb {
  width: 60px; height: 60px; position: relative; overflow: hidden;
  border-radius: var(--r-std); background: var(--bg-inset);
  display: grid; place-items: center;
}
.oc-ph { font-family: var(--font-display); color: var(--cy); font-size: 1.15rem; letter-spacing: -0.02em; }
.oc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-thumb img.hide, .om-shot img.hide { display: none; }
.oc-top { display: flex; justify-content: space-between; align-items: center; }
.oc-cat { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.oc-status { font-family: var(--font-mono); font-size: 0.6rem; color: var(--cy); display: flex; align-items: center; gap: 5px; }
.oc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.oc-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.05; margin: 4px 0; }
.oc-specs { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.oc-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--sm); }
.oc-tags span { font-family: var(--font-mono); font-size: 0.6rem; padding: 3px 7px; border: 1px solid var(--border); border-radius: 100px; color: var(--text-secondary); }
.oc-open { margin-top: var(--sm); color: var(--cy); }
.oc-open::after { background: var(--cy) !important; }

/* ---- modal ------------------------------------------------------------ */
/* ====== Project detail modal — full-screen dark "project space" ========= */
.orb-modal { --ma: #4ab7e8; --ma2: #3a64e8;
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.3s var(--ease-soft); }
.orb-modal[hidden] { display: none; }
.orb-modal.show { opacity: 1; }
.om-backdrop { position: absolute; inset: 0; background: rgba(4,7,16,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.om-shell {
  position: relative; z-index: 1; width: 96vw; height: 95svh; max-width: 1500px;
  background: radial-gradient(130% 100% at 50% 0%, #131f37 0%, #0b1222 55%, #080d1a 100%);
  border-radius: 22px; overflow: hidden; color: #eef2fb;
  box-shadow: 0 0 0 1px rgba(120,170,255,0.18), 0 40px 120px rgba(0,0,0,0.6), 0 0 90px rgba(58,100,232,0.16);
  transform: scale(0.985); transition: transform 0.35s var(--ease);
}
.orb-modal.show .om-shell { transform: none; }
.om-scroll { height: 100%; overflow-y: auto; padding: clamp(1.6rem, 4vw, 3.4rem); -webkit-overflow-scrolling: touch; }
.om-content { max-width: 920px; margin: 0 auto; }
.om-close {
  position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #eef2fb;
  cursor: pointer; font-size: 0.95rem; transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s;
}
.om-close:hover { transform: rotate(90deg); background: var(--ma); border-color: var(--ma); color: #04121e; }

/* staggered section reveal */
.om-sec, .om-title, .om-cat { opacity: 0; transform: translateY(16px); }
.orb-modal.play .om-sec,
.orb-modal.play .om-title { animation: omRise 0.6s var(--ease) calc(0.30s + var(--i, 0) * 0.11s) both; }
.orb-modal.play .om-cat { animation: omRise 0.6s var(--ease) calc(0.30s + var(--i, 0) * 0.11s) both,
                                     omPulse 1s ease calc(0.7s + var(--i, 0) * 0.11s) 1; }
@keyframes omRise { to { opacity: 1; transform: none; } }
@keyframes omPulse { 0%,100% { text-shadow: none; } 45% { text-shadow: 0 0 16px var(--ma); color: #bfe6ff; } }

.om-head { display: flex; flex-direction: column; margin-bottom: var(--xl); }
.om-cat { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ma); margin-bottom: 10px; }
.om-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.0; letter-spacing: -0.03em; color: #fff; }
.om-h { display: block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(170,190,225,0.72); margin-bottom: var(--md); }
.om-sec { margin-bottom: clamp(1.8rem, 4.5vw, 3rem); }
.om-desc { color: #c4cee0; font-size: 1.08rem; line-height: 1.65; max-width: 70ch; }
.om-empty { color: rgba(170,190,225,0.55); font-family: var(--font-mono); font-size: 0.8rem; }

/* hero image */
.om-hero { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #0e1828; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(120,170,255,0.12); }
.om-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.om-hero img.hide, .om-strip-item img.hide { display: none; }
.om-ph { font-family: var(--font-display); font-size: 2.4rem; color: rgba(150,180,255,0.5); }

/* gallery strip (horizontal scroll) */
.om-strip { display: flex; gap: var(--md); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.om-strip-item { position: relative; flex: 0 0 auto; width: min(62%, 460px); aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #0e1828; display: grid; place-items: center; scroll-snap-align: start; box-shadow: inset 0 0 0 1px rgba(120,170,255,0.1); }
.om-strip-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* gif demos */
.om-gifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--md); }
.om-gif { position: relative; border-radius: 12px; overflow: hidden; background: #0e1828; aspect-ratio: 16/10; }
.om-gif img, .om-gif video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* tech chips (glowing, flash once) */
.om-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.om-tags span { font-family: var(--font-mono); font-size: 0.72rem; padding: 6px 12px; border-radius: 100px;
  color: #d6e6ff; border: 1px solid rgba(90,160,230,0.4); background: rgba(60,110,200,0.12); }
.orb-modal.play .om-tags span { animation: omFlash 0.8s ease calc(0.85s + var(--i, 0) * 0.08s) 1; }
@keyframes omFlash { 0%,100% { box-shadow: 0 0 0 rgba(74,183,232,0); border-color: rgba(90,160,230,0.4); }
  50% { box-shadow: 0 0 16px rgba(74,183,232,0.6); border-color: var(--ma); } }

/* spec grid (two columns w/ dividers) */
.om-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--xl); }
.om-spec { display: flex; justify-content: space-between; gap: var(--md); padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.om-spec dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(170,190,225,0.72); }
.om-spec dd { font-family: var(--font-display); font-size: 1.15rem; color: #fff; text-align: right; }

/* 3D model viewer + loading state */
.om-model { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; cursor: grab;
  background: radial-gradient(120% 100% at 50% 0%, rgba(58,100,232,0.16), #0c1424); box-shadow: inset 0 0 0 1px rgba(120,170,255,0.14); }
.om-model.grabbing { cursor: grabbing; }
.om-viewer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease-soft); }
.om-viewer.in { opacity: 1; }
.om-viewer .mv-canvas { display: block; width: 100% !important; height: 100% !important; }
.om-viewer .mv-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200,215,240,0.7); }
.om-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity 0.5s var(--ease-soft); }
.om-loading.done { opacity: 0; pointer-events: none; }
.oml-text { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(190,210,245,0.85); }
.oml-bar { width: min(240px, 60%); height: 2px; background: rgba(255,255,255,0.12); border-radius: 100px; overflow: hidden; }
.oml-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ma2), var(--ma)); box-shadow: 0 0 10px var(--ma); }
.orb-modal.play .oml-bar i { animation: omlFill 2.5s cubic-bezier(0.4,0,0.2,1) 0.4s forwards; }
@keyframes omlFill { to { width: 100%; } }

/* CTA buttons (glowing) */
.om-cta-wrap { display: flex; flex-wrap: wrap; gap: var(--md); margin-top: var(--xs); }
.om-cta { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.95em 1.6em; border-radius: 100px; color: #04121e; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.om-cta-live { background: linear-gradient(120deg, var(--ma), #7ad0f0); box-shadow: 0 0 26px rgba(74,183,232,0.45); }
.om-cta-store { background: linear-gradient(120deg, var(--ma2), #7b6bff); color: #fff; box-shadow: 0 0 26px rgba(58,100,232,0.45); }
.om-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 38px rgba(74,183,232,0.6); }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .experience { height: 360vh; }
  .orb-rail { display: none; }
  .orb-panels {
    right: var(--gutter); left: var(--gutter); width: auto; top: auto;
    bottom: 0; transform: none; max-height: 50svh; align-content: end;
  }
  .orb-panel { max-height: 50svh; }
  .op-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .orb-caption { bottom: auto; top: calc(var(--xl) + 1rem); }
  .om-specs { grid-template-columns: 1fr; gap: 0; }
  .om-shell { width: 100vw; height: 100svh; border-radius: 0; }
  .om-strip-item { width: 82%; }
}

/* ---- static fallback (reduced-motion / no GSAP / no WebGL) ------------- */
.orb-static { height: auto; }
.orb-static .orb-sticky { position: relative; height: auto; display: block; padding: var(--xl) var(--gutter); }
.orb-static #orb-canvas { position: relative; height: 46svh; margin-bottom: var(--lg); }
.orb-static .orb-aura { display: none; }
.orb-static .orb-rail {
  position: static; transform: none; flex-direction: row; justify-content: center;
  gap: var(--lg); margin-bottom: var(--xl); flex-wrap: wrap;
}
.orb-static .orb-caption { position: static; transform: none; margin: 0 auto var(--xl); }
.orb-static .orb-panels {
  position: static; transform: none; width: auto; max-width: var(--maxw);
  margin: 0 auto; display: block; max-height: none;
}
.orb-static .orb-panel {
  position: static; opacity: 1; transform: none; pointer-events: auto;
  max-height: none; overflow: visible;
  padding-bottom: var(--xl); margin-bottom: var(--xl); border-bottom: 1px solid var(--border);
}
.orb-static .orb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }


/* ---- Unified experience: HUD/aura hidden until the orb engages --------- */
.orb-rail, .orb-caption, .orb-aura {
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
.experience.engaged .orb-rail,
.experience.engaged .orb-caption,
.experience.engaged .orb-aura { opacity: 1; }

/* ---- Project cards (anchored to orb-layer vertices, positioned by JS) -- */
.orb-floats { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease-soft); }
.experience.engaged .orb-floats { opacity: 1; }

/* SVG overlay drawing the connector line + vertex dot for each card */
.orb-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.orb-line { stroke: rgba(var(--cy-rgb), 0.55); stroke-width: 1; transition: opacity 0.2s; }
.orb-dot { fill: var(--cy); filter: drop-shadow(0 0 4px rgba(var(--cy-rgb), 0.8)); transition: opacity 0.2s; }

.float-card {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; text-align: left;
  width: min(230px, 40vw); will-change: transform, opacity; opacity: 0;
  background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-left: 2px solid var(--cy);
  border-radius: var(--r-std); padding: var(--md); font: inherit; color: var(--text-primary);
  transition: opacity 0.3s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.float-card:hover, .float-card:focus-visible {
  opacity: 1 !important; outline: none; border-color: var(--cy);
  box-shadow: 0 18px 40px rgba(var(--cy-rgb), 0.22);
}
.float-card .fc-tier { color: var(--cy); letter-spacing: 0.12em; font-size: 0.6rem; }
.float-card .fc-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.05; margin: 5px 0 3px; letter-spacing: -0.02em; }
.float-card .fc-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; max-width: none; }
.float-card .fc-open { display: inline-block; margin-top: var(--sm); color: var(--cy); font-size: 0.62rem; letter-spacing: 0.08em; }

/* Static fallback (no webgl / reduced motion): plain stacked list */
.orb-floats.stacked { position: static; inset: auto; opacity: 1; pointer-events: auto;
  display: flex; flex-direction: column; gap: var(--md); align-items: center;
  padding: var(--lg) var(--gutter); }
.orb-floats.stacked .orb-lines { display: none; }
.orb-floats.stacked .float-card {
  position: relative; left: auto; top: auto; opacity: 1 !important; transform: none !important;
  width: 100%; max-width: 520px;
}

/* ---- Static experience layout: show hero normally, hide 3D ------------- */
.orb-static #orb-canvas,
.orb-static .orb-aura { display: none; }
.orb-static .hero-overlay {
  position: relative; opacity: 1; transform: none; filter: none; min-height: 100svh;
}
.orb-static .orb-rail { display: none; }
.orb-static .orb-caption { opacity: 1; }

/* ======================================================================== *
   Central contact orb + contact form modal
   ======================================================================== */
/* The VISIBLE orb is now a real 3D mesh (so wireframes occlude it with depth).
   This element is just a transparent click/hover target tracking the centre. */
.contact-orb {
  position: absolute; left: 0; top: 0; z-index: 6; width: 36px; height: 36px;
  border: none; padding: 0; border-radius: 50%; cursor: pointer; opacity: 0; background: transparent;
}
.contact-orb::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }  /* larger hit area */
.contact-orb:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }

/* static fallback (no WebGL): a visible CSS orb at the bottom centre */
.contact-orb.static {
  --g: 0.8; position: fixed; left: 50%; bottom: 26px; top: auto; width: 26px; height: 26px;
  transform: translateX(-50%) !important; opacity: 1;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eaf2ff 55%, rgba(255,255,255,0) 73%);
  animation: orbBreath 3.2s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { box-shadow: 0 0 16px 4px rgba(255,255,255,0.55), 0 0 40px 10px rgba(130,170,255,0.4); }
  50%      { box-shadow: 0 0 24px 7px rgba(255,255,255,0.85), 0 0 60px 18px rgba(140,180,255,0.55); }
}
@media (prefers-reduced-motion: reduce) { .contact-orb.static { animation: none; } }

/* full-screen rounded modal */
.contact-modal { position: fixed; inset: 0; z-index: 10002; display: grid; place-items: center; padding: clamp(10px, 2vw, 28px); }
.contact-modal [hidden] { display: none !important; }   /* fields/success toggled via [hidden] over display:flex */
.cm-backdrop { position: absolute; inset: 0; background: rgba(8,8,12,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.contact-modal.show .cm-backdrop { opacity: 1; }
.cm-panel {
  position: relative; z-index: 1; width: 100%; max-width: 1100px; height: 100%; max-height: 100%; overflow: auto;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--sh-hover);
  opacity: 0; transform: scale(0.985) translateY(10px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-modal.show .cm-panel { opacity: 1; transform: none; }
.cm-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--bg-secondary); border-radius: 50%; cursor: pointer; color: var(--text-primary); font-size: 0.95rem; z-index: 2; transition: transform 0.3s var(--ease), border-color 0.2s; }
.cm-x:hover { border-color: var(--accent); transform: rotate(90deg); }
.cm-body { max-width: 560px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2rem); }
.cm-title { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.03em; line-height: 1; }
.cm-sub { color: var(--text-secondary); margin: var(--sm) 0 var(--xl); }
.cm-form { display: flex; flex-direction: column; gap: var(--lg); }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); }
.cm-field { display: flex; flex-direction: column; gap: 6px; }
.cm-field > span { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.cm-field em, .cm-radios em { color: var(--accent-deep); font-style: normal; }
.cm-field input, .cm-field select, .cm-field textarea {
  font-family: var(--font-body); font-size: 1.05rem; padding: 0.8em 1em; border: 1px solid var(--border);
  border-radius: var(--r-soft); background: var(--bg-secondary); color: var(--text-primary); width: 100%;
}
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-primary); }
.cm-field textarea { resize: vertical; }
.cm-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; position: relative; }
.cm-toggle input { position: absolute; opacity: 0; }
.cm-toggle .switch { width: 46px; height: 26px; border-radius: 100px; background: var(--bg-inset); border: 1px solid var(--border); position: relative; flex: none; transition: background 0.2s; }
.cm-toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-faint); transition: transform 0.2s, background 0.2s; }
.cm-toggle input:checked + .switch { background: var(--accent); border-color: var(--accent); }
.cm-toggle input:checked + .switch::after { transform: translateX(20px); background: #fff; }
.cm-radios { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-radios legend { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 6px; padding: 0; }
.cm-radios label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cm-radios input { accent-color: var(--accent); width: 18px; height: 18px; }
.cm-err { color: #c0392b; font-size: 0.85rem; min-height: 1em; }
.cm-form .btn { align-self: flex-start; }
.cm-form .btn .spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: dspin 0.7s linear infinite; display: none; }
.cm-form .btn.loading .spinner { display: inline-block; }
.cm-form .btn.loading .arrow { display: none; }
.cm-success { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0; }
.cm-check { width: 64px; height: 64px; margin: 0 auto var(--md); border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 1.6rem; }
.cm-success h3 { font-size: 1.8rem; }
.cm-success p { color: var(--text-secondary); }
@media (max-width: 560px) { .cm-grid { grid-template-columns: 1fr; } .cm-panel { border-radius: 18px; } }
