/* ============================================================
   Async Mynds — Deep-space IT consultancy landing page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand — driven from the logo's teal→blue→purple gradient.
     Accent hues are overridable via Tweaks (data-accent / CSS vars). */
  --teal:   #5fd6bd;
  --blue:   #6f82cf;
  --purple: #a78bff;
  --grad:   linear-gradient(115deg, var(--teal) 0%, var(--blue) 48%, var(--purple) 100%);
  --grad-soft: linear-gradient(115deg, color-mix(in oklab, var(--teal) 70%, transparent), color-mix(in oklab, var(--purple) 70%, transparent));

  /* Surfaces */
  --bg:        #05060d;
  --bg-2:      #080a14;
  --surface:   rgba(255,255,255,0.024);
  --surface-2: rgba(255,255,255,0.045);
  --border:    rgba(255,255,255,0.085);
  --border-strong: rgba(255,255,255,0.16);

  /* Text */
  --text:      #e9ebf6;
  --text-dim:  #969cba;
  --text-faint:#5d6383;

  --glow: 1; /* multiplier, set by Tweaks */
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fixed background layers ---------- */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: calc(0.38 * var(--glow));
  mix-blend-mode: screen;
  will-change: transform;
}
.orb.a { width: 620px; height: 620px; background: radial-gradient(circle, var(--teal), transparent 65%);   top: -180px; left: -120px; }
.orb.b { width: 720px; height: 720px; background: radial-gradient(circle, var(--purple), transparent 65%); top: 8%;    right: -220px; }
.orb.c { width: 560px; height: 560px; background: radial-gradient(circle, var(--blue), transparent 65%);   top: 150vh; left: 30%; }

/* circuit grid overlay (toggle via [data-grid]) */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
body[data-grid="on"] .bg-grid { opacity: 1; }

.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, transparent 40%, rgba(0,0,0,.55) 100%);
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- Shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; }

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: var(--grad);
}
.kicker.center::before { display: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); margin: 18px 0 18px; }
.section-head p { color: var(--text-dim); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Space Grotesk'; font-size: 15.5px; font-weight: 500;
  padding: 14px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  color: #05060d; font-weight: 600;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 30px color-mix(in oklab, var(--purple) calc(40% * var(--glow)), transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 14px 46px color-mix(in oklab, var(--purple) calc(60% * var(--glow)), transparent); }

.btn-ghost {
  color: var(--text); background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); color: #fff; }

/* ---------- Nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 0 16px color-mix(in oklab, var(--teal) calc(45% * var(--glow)), transparent)); }
.brand .wordmark { flex-direction: column; line-height: 1; }
.brand .wordmark b { display: inline; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.brand .wordmark span { display:block; font-family: 'JetBrains Mono'; font-size: 9px; letter-spacing: .32em; color: var(--text-faint); margin-top: 3px; font-weight: 300; }
.brand .wordmark .tagline strong { font-weight: 700; font-style: normal; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 400; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }
.nav-burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 200px 0 130px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 600; margin: 26px 0 26px; }
.brand-wordmark-heavy { font-weight: 700 !important; }
.brand-wordmark-light { font-weight: 100 !important; }
.hero p.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta .stat .n { font-size: 30px; font-weight: 600; font-family: 'Space Grotesk'; }
.hero-meta .stat .n .grad-text { font-weight: 700; }
.hero-meta .stat .l { font-family: 'JetBrains Mono'; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

/* hero mark visual */
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-visual .ring {
  position: absolute; border: 1px solid var(--border); border-radius: 50%;
  inset: 0; animation: spin 38s linear infinite;
}
.hero-visual .ring.r2 { inset: 12%; border-style: dashed; border-color: rgba(255,255,255,.06); animation-duration: 56s; animation-direction: reverse; }
.hero-visual .ring.r3 { inset: 26%; border-color: var(--border-strong); animation-duration: 30s; }
.hero-visual .ring .node { position: absolute; width: 9px; height: 9px; background: var(--teal); top: -5px; left: 50%; border-radius: 2px; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 14px var(--teal); }
.hero-visual .ring.r3 .node { background: var(--purple); box-shadow: 0 0 14px var(--purple); }
.hero-visual .mark-wrap {
  position: relative; width: 64%; aspect-ratio: 1; display: grid; place-items: center;
}
.hero-visual .mark-wrap::before {
  content: ""; position: absolute; inset: -8%; border-radius: 50%;
  background: var(--grad-soft); filter: blur(48px); opacity: calc(.55 * var(--glow));
}
.hero-visual img.mark { width: 100%; position: relative; filter: drop-shadow(0 0 30px color-mix(in oklab, var(--purple) calc(45% * var(--glow)), transparent)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-y { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }

/* ---------- Trust / logos strip ---------- */
.trust { padding: 0 0 30px; }
.trust .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; opacity: .8; }
.trust .lbl { font-family: 'JetBrains Mono'; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.trust .chip { font-family: 'JetBrains Mono'; font-size: 13px; color: var(--text-dim); padding: 7px 15px; border: 1px solid var(--border); border-radius: 100px; }

/* ---------- Services · capability index ---------- */
.cap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 30px; align-items: start; }
.cap-list { display: flex; flex-direction: column; gap: 30px; }
.cap-glabel { font-family: 'JetBrains Mono'; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cap-glabel span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.cap-item {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: none; border: none; border-top: 1px solid var(--border);
  padding: 18px 8px; cursor: pointer; position: relative;
  font-family: 'Space Grotesk'; transition: padding-left .3s var(--ease);
}
.cap-group .cap-item:last-child { border-bottom: 1px solid var(--border); }
.cap-item::after { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 58%; background: var(--grad); transform: translateY(-50%) scaleY(0); transform-origin: center; transition: transform .35s var(--ease); }
.cap-item.active::after { transform: translateY(-50%) scaleY(1); }
.cap-item.active { padding-left: 16px; }
.cap-num { font-family: 'JetBrains Mono'; font-size: 12px; color: var(--text-faint); transition: color .3s; }
.cap-t { flex: 1; font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--text-dim); transition: color .3s; }
.cap-arr { color: var(--teal); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cap-item:hover .cap-t { color: var(--text); }
.cap-item.active .cap-t { color: var(--text); }
.cap-item.active .cap-num { color: var(--teal); }
.cap-item.active .cap-arr { opacity: 1; transform: none; }

.cap-detail {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  min-height: 392px; padding: 40px;
}
.cap-detail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(.55 * var(--glow));
  background: radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in oklab, var(--purple) 26%, transparent), transparent 60%),
              radial-gradient(ellipse 55% 80% at 0% 100%, color-mix(in oklab, var(--teal) 22%, transparent), transparent 60%);
}
.cap-panel { position: absolute; left: 40px; right: 40px; top: 40px; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.cap-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.cap-glyph { width: 62px; height: 62px; border-radius: 16px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.035); display: grid; place-items: center; margin-bottom: 26px; box-shadow: 0 0 30px color-mix(in oklab, var(--teal) calc(22% * var(--glow)), transparent); }
.cap-glyph svg { width: 34px; height: 34px; }
.cap-pk { font-family: 'JetBrains Mono'; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.cap-name { font-size: clamp(26px, 2.6vw, 33px); margin-bottom: 16px; }
.cap-desc { color: var(--text-dim); font-size: 17px; line-height: 1.62; max-width: 470px; }
.cap-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.cap-tags span { font-family: 'JetBrains Mono'; font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 100px; padding: 6px 13px; }

/* diamond accent glyph colors */
.cap-glyph .d { fill: var(--teal); }
.cap-glyph .d2 { fill: var(--purple); }
.cap-glyph .ln { stroke: var(--blue); stroke-width: 1.6; fill: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 18px 0 22px; }
.about p { color: var(--text-dim); font-size: 17px; margin-bottom: 18px; }
.about .lead2 { color: var(--text); font-size: 19px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { padding: 28px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, transform .4s var(--ease); }
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.stat-card .n { font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.stat-card .l { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }
.stat-card .k { font-family: 'JetBrains Mono'; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { padding: 32px 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, background .4s, transform .4s var(--ease); }
.why:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-4px); }
.why .wn { font-family: 'JetBrains Mono'; font-size: 13px; color: var(--teal); margin-bottom: 18px; }
.why h3 { font-size: 21px; margin-bottom: 12px; }
.why p { color: var(--text-dim); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 64px clamp(28px, 5vw, 80px);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; opacity: calc(.5 * var(--glow)); pointer-events: none;
  background: radial-gradient(ellipse 60% 90% at 100% 0%, color-mix(in oklab, var(--purple) 28%, transparent), transparent 60%),
              radial-gradient(ellipse 50% 80% at 0% 100%, color-mix(in oklab, var(--teal) 24%, transparent), transparent 60%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; position: relative; }
.contact-card h2 { font-size: clamp(30px, 3.8vw, 48px); margin: 18px 0 18px; }
.contact-card p.sub { color: var(--text-dim); font-size: 17px; max-width: 420px; }
.contact-points { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { list-style: none; display: flex; gap: 12px; align-items: center; color: var(--text-dim); font-size: 15px; }
.contact-points .dot { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); flex: none; box-shadow: 0 0 10px var(--teal); }

form.book { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: 'JetBrains Mono'; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea, .field select {
  font-family: 'Space Grotesk'; font-size: 15px; color: var(--text);
  background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 15px; outline: none; transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 18%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.book .btn-primary { margin-top: 6px; justify-content: center; }
form.book .btn-primary:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #ff8aa3; font-size: 13.5px; font-family: 'JetBrains Mono'; margin-top: 4px; }
.form-done { display: none; padding: 36px 10px; text-align: center; }
.form-done.show { display: block; }
.form-done .tick { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #05060d; font-size: 26px; }

/* ---------- Footer ---------- */
footer.foot { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand img { height: 30px; }
.foot p.tag { color: var(--text-dim); font-size: 14px; max-width: 280px; margin-top: 16px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-family: 'JetBrains Mono'; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 13px; font-family: 'JetBrains Mono'; }
.foot-legal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-legal a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.foot-legal a:hover { color: var(--text); }
.foot-legal .sep { opacity: .5; }

/* ---------- Scroll reveal ---------- */
/* Only hide when JS is confirmed healthy — if scripts fail, content stays visible. */
html.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in, html.has-js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .ring, .orb { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .cap { grid-template-columns: 1fr; gap: 22px; }
  .cap-detail { min-height: 360px; }
  .why-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  section { padding: 90px 0; }
  .hero { padding: 150px 0 90px; }
}
@media (max-width: 560px) {
  .cap-detail { padding: 28px; min-height: 0; }
  .cap-panel { position: relative; left: auto; right: auto; top: auto; }
  .cap-panel:not(.active) { display: none; }
  .cap-t { font-size: 18px; }
  .hero-meta { gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  width: 264px; border-radius: 16px;
  background: color-mix(in oklab, var(--bg-2) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  font-family: 'Space Grotesk';
  animation: tw-in .3s var(--ease);
}
@keyframes tw-in { from { opacity: 0; transform: translateY(10px); } }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.tweaks-head span { font-family: 'JetBrains Mono'; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.tweaks-head button { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 4px; border-radius: 6px; }
.tweaks-head button:hover { color: var(--text); background: var(--surface-2); }
.tweaks-body { padding: 8px 16px 16px; display: flex; flex-direction: column; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.tw-row:last-child { border-bottom: none; }
.tw-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.tw-row label { font-size: 13.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.tw-row label em { font-style: normal; font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-faint); }
.tw-swatches { display: flex; gap: 7px; }
.tw-swatches button { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border-strong); cursor: pointer; padding: 0; transition: transform .2s var(--ease), box-shadow .2s; }
.tw-swatches button:hover { transform: scale(1.12); }
.tw-swatches button.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--text); }
.tw-toggle { width: 40px; height: 23px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border-strong); cursor: pointer; position: relative; padding: 0; transition: background .25s; }
.tw-toggle span { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--text-dim); transition: transform .25s var(--ease), background .25s; }
.tw-toggle.on { background: var(--grad); border-color: transparent; }
.tw-toggle.on span { transform: translateX(17px); background: #fff; }
.tw-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 118px; height: 4px; border-radius: 4px; background: var(--surface-2); outline: none; }
.tw-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--text); cursor: pointer; box-shadow: 0 0 8px color-mix(in oklab, var(--teal) 60%, transparent); }
.tw-row input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--text); cursor: pointer; }
.tw-text { font-family: 'Space Grotesk'; font-size: 13px; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; outline: none; width: 100%; }
.tw-text:focus { border-color: var(--teal); }
@media (max-width: 560px) { .tweaks-panel { left: 16px; right: 16px; width: auto; } }
