/*
Theme Name: SoftwareLab
Theme URI: https://softwarelab.ro/
Author: SoftwareLab
Author URI: https://softwarelab.ro/
Description: Custom dark minimal theme for SoftwareLab — single-page studio site with scroll-reactive motion.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softwarelab
*/

/* ============================================================
   SoftwareLab — dark minimal, Apple-quiet
   ============================================================ */
:root{
  --bg:        oklch(0.165 0.004 270);
  --bg-2:      oklch(0.195 0.004 270);
  --panel:     oklch(0.215 0.005 270);
  --line:      oklch(1 0 0 / 0.09);
  --line-2:    oklch(1 0 0 / 0.16);
  --text:      oklch(0.97 0.003 270);
  --muted:     oklch(0.68 0.006 270);
  --faint:     oklch(0.5 0.006 270);
  --accent:    #a6ce39;
  --accent-dim:rgba(166, 206, 57, 0.16);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:      1240px;
  --pad:       40px;
}
html[data-accent="mono"]{ --accent: oklch(0.88 0 0); --accent-dim: oklch(1 0 0 / 0.12); }
html[data-accent="warm"]{ --accent: oklch(0.78 0.08 55); --accent-dim: oklch(0.78 0.08 55 / 0.16); }
html[data-accent="cool"]{ --accent: #a6ce39; --accent-dim: rgba(166, 206, 57, 0.16); }

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--bg); color:var(--text);
  font-family:"Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-weight:400; line-height:1.5; letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
::selection{ background:var(--accent-dim); }

.kicker{
  font-family:"IBM Plex Mono", monospace; font-size:12px; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--muted); font-weight:500;
  display:flex; align-items:center; gap:10px;
}
.kicker span{ color:var(--accent); }

/* ---------- background glow + grain ---------- */
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(60vw 50vh at 72% -12%, oklch(0.34 0.04 135 / 0.4), transparent 70%),
    radial-gradient(46vw 38vh at -8% 108%, oklch(0.27 0.02 150 / 0.38), transparent 70%);
}
body::after{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:1; opacity:0.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .marquee, .footer, .nav{ position:relative; z-index:2; }

/* ---------- scroll-reactive aurora ---------- */
.aurora{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.blob{ position:absolute; border-radius:50%; filter:blur(90px); will-change:transform, opacity; }
.blob-a{
  width:62vw; height:62vw; min-width:420px; min-height:420px;
  top:-16vw; right:-12vw; opacity:0.20;
  background:radial-gradient(circle at center, var(--accent) 0%, transparent 62%);
}
.blob-b{
  width:56vw; height:56vw; min-width:380px; min-height:380px;
  bottom:-18vw; left:-14vw; opacity:0.14;
  background:radial-gradient(circle at center, oklch(0.62 0.11 218) 0%, transparent 62%);
}
@media (prefers-reduced-motion: reduce){ .blob{ transform:none !important; } }

/* ============================================================ NAV */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  transition:background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:oklch(0.165 0.004 270 / 0.72);
  backdrop-filter:blur(18px) saturate(1.4); -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:18px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:11px; }
.wordmark{ font-weight:600; font-size:17px; letter-spacing:-0.02em; }
.wm-lab{ color:var(--accent); }
.wm-tld{ color:var(--accent); font-size:0.62em; font-weight:500; vertical-align:0.5em; letter-spacing:0.02em; margin-left:1px; }
.nav-links{ display:flex; gap:30px; margin-left:auto; }
.nav-links a{
  font-size:14px; color:var(--muted); position:relative; padding:4px 0;
  transition:color .3s var(--ease);
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-1px; height:1px; width:100%;
  background:var(--text); transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ transform:scaleX(1); }

/* ---------- logo mark ---------- */
.mark{ width:26px; height:26px; display:block; position:relative; flex:none; }
.mark-sm{ width:22px; height:22px; }
.mark svg{ width:100%; height:100%; display:block; overflow:visible; }
.mark .stroke{ stroke:var(--text); stroke-width:1.6; fill:none; }
.mark .accent{ stroke:var(--accent); }
.mark .fill{ fill:var(--text); }
.mark .fill-accent{ fill:var(--accent); }
.mark .fl-liq{ fill:var(--accent); }
.mark .fl-tick{ stroke:var(--text); stroke-width:1; opacity:0.7; }
.mark .bit{ font-family:"IBM Plex Mono", monospace; font-size:4.4px; font-weight:600; fill:var(--text); text-anchor:middle; }
.mark .bit.bit-a{ fill:var(--accent); }

/* ============================================================ BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-size:14px; font-weight:500; letter-spacing:-0.01em; white-space:nowrap;
  border-radius:100px; padding:12px 22px; position:relative; overflow:hidden;
  transition:transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-pill{ border:1px solid var(--line-2); padding:9px 18px; }
.btn-pill:hover{ border-color:var(--text); transform:translateY(-1px); }
.btn-solid{ background:var(--text); color:var(--bg); font-weight:600; }
.btn-solid:hover{ transform:translateY(-2px); }
.btn-solid::after{
  content:""; position:absolute; inset:0; background:var(--accent); opacity:0;
  transition:opacity .4s var(--ease); z-index:-0;
}
.btn-ghost{ border:1px solid var(--line-2); }
.btn-ghost:hover{ border-color:var(--text); transform:translateY(-2px); }

/* ============================================================ HERO */
.hero{
  min-height:100vh; max-width:var(--maxw); margin:0 auto;
  padding:160px var(--pad) 72px; display:flex; flex-direction:column;
  justify-content:center; position:relative;
}
.hero-grid{ display:flex; flex-direction:column; gap:34px; }
.hero-title{
  font-weight:600; letter-spacing:-0.04em; line-height:0.96;
  font-size:clamp(48px, 8.5vw, 124px); text-wrap:balance;
}
.hero-title .line{ display:block; overflow:hidden; padding-bottom:0.04em; }
.hero-title .word{ display:inline-block; animation:wordIn 1s cubic-bezier(0.16,1,0.3,1) both; }
.hero-title .line:nth-child(1) .word:nth-child(1){ animation-delay:.10s; }
.hero-title .line:nth-child(1) .word:nth-child(2){ animation-delay:.18s; }
.hero-title .line:nth-child(1) .word:nth-child(3){ animation-delay:.26s; }
.hero-title .line:nth-child(2) .word:nth-child(1){ animation-delay:.34s; }
.hero-title .line:nth-child(2) .word:nth-child(2){ animation-delay:.42s; }
.hero-title .line:nth-child(2) .word:nth-child(3){ animation-delay:.50s; }
@keyframes wordIn{ from{ transform:translateY(115%); } to{ transform:none; } }
/* hero supporting copy reveals via CSS timeline (robust when backgrounded) */
.hero [data-rk]{ animation:rkIn .85s cubic-bezier(0.22,1,0.36,1) both; }
.hero .kicker[data-rk]{ animation-delay:.10s; }
.hero .hero-foot[data-rk]{ animation-delay:.55s; }
.hero .scroll-hint[data-rk]{ animation-delay:.72s; }
@keyframes rkIn{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  .hero-title .word{ animation:none; transform:none; }
  .hero [data-rk]{ animation:none; opacity:1; transform:none; }
}
.hero-title .em{ font-style:italic; font-weight:400; color:var(--accent); font-family:"Hanken Grotesk"; }
.hero-foot{ display:flex; gap:48px; align-items:flex-end; flex-wrap:wrap; max-width:880px; }
.hero-sub{ font-size:clamp(16px,1.5vw,19px); color:var(--muted); max-width:480px; line-height:1.55; }
.hero-cta{ display:flex; gap:12px; }

/* hero variants */
html[data-hero="centered"] .hero{ align-items:center; text-align:center; }
html[data-hero="centered"] .hero-grid{ align-items:center; }
html[data-hero="centered"] .hero-foot{ justify-content:center; flex-direction:column; align-items:center; gap:26px; }
html[data-hero="centered"] .hero-sub{ max-width:560px; }
html[data-hero="centered"] .kicker{ justify-content:center; }
html[data-hero="display"] .hero-title{ font-size:clamp(56px, 12vw, 188px); line-height:0.9; letter-spacing:-0.05em; }
html[data-hero="display"] .hero-sub{ max-width:420px; }

.scroll-hint{
  position:absolute; left:var(--pad); bottom:40px; display:flex; align-items:center; gap:12px;
  font-family:"IBM Plex Mono", monospace; font-size:11px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--faint); transition:color .3s var(--ease);
}
html[data-hero="centered"] .scroll-hint{ left:50%; transform:translateX(-50%); }
.scroll-hint:hover{ color:var(--text); }
.scroll-line{ width:46px; height:1px; background:var(--line-2); position:relative; overflow:hidden; }
.scroll-line::after{
  content:""; position:absolute; inset:0; background:var(--accent);
  transform:translateX(-100%); animation:scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse{ 0%{transform:translateX(-100%)} 55%,100%{transform:translateX(100%)} }
@media (prefers-reduced-motion: reduce){ .scroll-line::after{ animation:none; } }

/* ============================================================ MARQUEE */
.marquee{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; }
.marquee-track{
  display:flex; gap:34px; align-items:center; width:max-content;
  animation:marquee 32s linear infinite; will-change:transform;
}
.marquee-track span{ font-size:clamp(22px,3vw,40px); font-weight:500; letter-spacing:-0.02em; color:var(--text); }
.marquee-track i{ color:var(--accent); font-style:normal; font-size:24px; }
@keyframes marquee{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }

/* ============================================================ SECTIONS */
/* Consistent vertical rhythm: spacing lives on each section's TOP only, so the
   gap between any two sections is a single value (not doubled padding). */
.section{ max-width:var(--maxw); margin:0 auto; padding:118px var(--pad) 0; }
.section-head{ margin-bottom:64px; max-width:760px; }
.section-title{
  margin-top:20px; font-size:clamp(26px,3.6vw,46px); font-weight:500;
  letter-spacing:-0.03em; line-height:1.08; text-wrap:balance; color:var(--text);
}

/* ============================================================ ACCORDION */
.accordion{ list-style:none; border-top:1px solid var(--line); }
.acc-item{ border-bottom:1px solid var(--line); }
.acc-head{
  width:100%; display:flex; align-items:center; gap:24px; text-align:left;
  padding:30px 4px; transition:padding .5s var(--ease);
}
.acc-no{ font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--accent); width:34px; flex:none; }
.acc-title{ font-size:clamp(22px,3vw,34px); font-weight:500; letter-spacing:-0.025em; flex:1; transition:color .4s var(--ease), transform .6s var(--ease); }
.acc-plus{ width:18px; height:18px; flex:none; position:relative; }
.acc-plus::before, .acc-plus::after{
  content:""; position:absolute; background:var(--muted); transition:transform .5s var(--ease), background .4s var(--ease);
}
.acc-plus::before{ left:0; top:50%; width:100%; height:1.6px; transform:translateY(-50%); }
.acc-plus::after{ top:0; left:50%; height:100%; width:1.6px; transform:translateX(-50%); }
.acc-item:hover .acc-title{ transform:translateX(8px); }
.acc-item:hover .acc-plus::before, .acc-item:hover .acc-plus::after{ background:var(--text); }
.acc-item.open .acc-plus::after{ transform:translateX(-50%) scaleY(0); }
.acc-item.open .acc-plus::before{ background:var(--accent); }
.acc-item.open .acc-title{ color:var(--text); }
.acc-body{ overflow:hidden; height:0; transition:height .6s var(--ease); }
.acc-body-inner{
  padding:0 4px 36px 58px; max-width:620px; opacity:0; transform:translateY(10px);
  transition:opacity .5s var(--ease) .05s, transform .5s var(--ease) .05s;
}
.acc-item.open .acc-body-inner{ opacity:1; transform:none; }
.acc-body-inner p{ color:var(--muted); font-size:17px; line-height:1.6; }
.tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.tags li{
  font-family:"IBM Plex Mono", monospace; font-size:11.5px; letter-spacing:0.02em;
  color:var(--muted); border:1px solid var(--line-2); border-radius:100px; padding:5px 12px;
}

/* ============================================================ WORK */
.work-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.work-card{
  border:1px solid var(--line); border-radius:18px; padding:18px; cursor:pointer;
  background:oklch(0.2 0.004 270 / 0.5); transition:border-color .5s var(--ease), transform .6s var(--ease), background .5s var(--ease);
}
.work-card:hover{ border-color:var(--line-2); transform:translateY(-4px); background:oklch(0.22 0.005 270 / 0.6); }
.work-card:focus-visible{ outline:1px solid var(--accent); outline-offset:3px; }
.work-thumb{
  aspect-ratio:16/10; border-radius:10px; position:relative; overflow:hidden;
  background:
    linear-gradient(135deg, oklch(0.28 0.01 250), oklch(0.2 0.006 280));
  display:flex; align-items:center; justify-content:center;
}
.work-thumb::before{
  content:attr(data-ph); font-family:"IBM Plex Mono", monospace; font-size:12px;
  letter-spacing:0.04em; color:var(--faint); text-transform:uppercase;
}
.work-thumb::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg, transparent 30%, oklch(1 0 0 / 0.06) 50%, transparent 70%);
  transform:translateX(-120%); transition:transform .9s var(--ease);
}
.work-card:hover .work-thumb::after{ transform:translateX(120%); }
.work-meta{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:18px 6px 4px; }
.work-meta h3{ font-size:20px; font-weight:600; letter-spacing:-0.02em; }
.work-kind{ font-family:"IBM Plex Mono", monospace; font-size:11.5px; color:var(--faint); text-transform:uppercase; letter-spacing:0.04em; text-align:right; }
.work-detail{ overflow:hidden; height:0; transition:height .6s var(--ease); }
.work-detail > *{ opacity:0; transition:opacity .5s var(--ease) .08s; }
.work-card.open .work-detail > *{ opacity:1; }
.work-detail p{ color:var(--muted); font-size:15px; line-height:1.6; padding:8px 6px 0; }
.work-detail .tags{ padding:0 6px; margin-top:14px; }

/* ============================================================ PARTNERS */
.partner-intro{ max-width:720px; color:var(--muted); font-size:clamp(17px,1.8vw,20px); line-height:1.6; margin-bottom:56px; }
.partner-intro strong{ color:var(--text); font-weight:500; }
.partner-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.partner-card{
  border:1px solid var(--line); border-radius:18px; padding:30px 32px 28px;
  background:oklch(0.2 0.004 270 / 0.5);
  transition:border-color .5s var(--ease), transform .6s var(--ease), background .5s var(--ease);
}
.partner-card:hover{ border-color:var(--line-2); transform:translateY(-4px); background:oklch(0.22 0.005 270 / 0.6); }
.pc-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.pc-no{ font-family:"IBM Plex Mono", monospace; font-size:12px; letter-spacing:0.04em; color:var(--accent); }
.pc-years{
  font-family:"IBM Plex Mono", monospace; font-size:11px; letter-spacing:0.02em; color:var(--faint);
  border:1px solid var(--line-2); border-radius:100px; padding:4px 11px; white-space:nowrap;
}
.partner-card h3{ font-size:clamp(20px,2.4vw,27px); font-weight:500; letter-spacing:-0.025em; margin-bottom:12px; }
.partner-card p{ color:var(--muted); font-size:15.5px; line-height:1.6; }
.partner-card .tags{ margin-top:22px; }

/* ============================================================ PROCESS */
.steps{ list-style:none; border-top:1px solid var(--line); }
.step{
  display:flex; gap:40px; align-items:center; padding:38px 4px;
  border-bottom:1px solid var(--line); transition:background .5s var(--ease);
}
.step:hover{ background:oklch(0.2 0.004 270 / 0.4); }
.step-no{ font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--accent); width:40px; flex:none; }
.step-body{ display:flex; gap:8px 60px; flex-wrap:wrap; align-items:center; }
.step-body h3{ font-size:clamp(24px,3vw,38px); font-weight:500; letter-spacing:-0.025em; min-width:230px; }
.step-body p{ color:var(--muted); font-size:17px; max-width:420px; line-height:1.55; }

/* ============================================================ STATS */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; border-top:1px solid var(--line); }
.stat{ display:flex; flex-direction:column; gap:10px; }
.stat-value{ display:flex; align-items:baseline; }
.stat .num{ font-size:clamp(48px,6vw,84px); font-weight:600; letter-spacing:-0.04em; line-height:1; font-feature-settings:"tnum"; display:inline; }
.stat .suffix{ color:var(--accent); font-size:clamp(28px,3vw,44px); font-weight:500; margin-left:2px; }
.stat p{ color:var(--muted); font-size:14px; }

/* ============================================================ STUDIO */
.studio{ }
.studio-quote{
  margin-top:42px; font-size:clamp(28px,4.4vw,58px); font-weight:400;
  letter-spacing:-0.03em; line-height:1.12; max-width:1000px; text-wrap:balance;
}
.reveal-mask{ display:block; overflow:hidden; }
.reveal-mask > span{ display:block; transform:translateY(105%); transition:transform .9s var(--ease); }
.reveal-mask.in > span{ transform:none; }
.studio-quote .reveal-mask:nth-child(1) > span{ transition-delay:.02s; }
.studio-quote .reveal-mask:nth-child(2) > span{ transition-delay:.08s; }
.studio-quote .reveal-mask:nth-child(3) > span{ transition-delay:.14s; }
.studio-quote .reveal-mask:nth-child(4) > span{ transition-delay:.20s; }
.studio-quote .reveal-mask:nth-child(5) > span{ transition-delay:.26s; }

/* ============================================================ CONTACT */
.contact{ text-align:center; padding-bottom:140px; }
.contact .kicker{ justify-content:center; }
.contact-title{ margin:22px 0 40px; font-size:clamp(34px,6vw,82px); font-weight:600; letter-spacing:-0.04em; line-height:1; text-wrap:balance; }
.contact-mail{
  display:inline-block; font-size:clamp(20px,3vw,34px); font-weight:500; letter-spacing:-0.02em;
  padding-bottom:6px; position:relative; color:var(--text);
}
.contact-mail::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:100%;
  background:var(--accent); transform:scaleX(0); transform-origin:center; transition:transform .6s var(--ease);
}
.contact-mail:hover::after{ transform:scaleX(1); }
.contact-note{ margin-top:30px; color:var(--faint); font-size:14px; }
.contact-disclaimer{
  margin:14px auto 0; max-width:520px;
  color:var(--line-2); font-size:12px; line-height:1.55;
  text-wrap:balance;
}

/* ============================================================ FOOTER */
.footer{ border-top:1px solid var(--line); }
.footer-inner{
  max-width:var(--maxw); margin:0 auto; padding:38px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.brand-sm .wordmark{ font-size:15px; }
.footer-brand{ display:flex; flex-direction:column; gap:8px; }
.footer-company{
  display:flex; align-items:center; gap:8px;
  font-family:"IBM Plex Mono", monospace; font-size:11px;
  color:var(--faint); letter-spacing:0.04em; text-transform:uppercase;
  padding-left:33px;
}
.footer-company-name{ color:var(--muted); }
.footer-company-dot{ color:var(--line-2); }
.footer-company-based{ color:var(--line-2); text-transform:none; }
.footer-copy{ color:var(--faint); font-size:13px; }
.footer-links{ display:flex; gap:24px; }
.footer-links a{ color:var(--muted); font-size:13px; transition:color .3s var(--ease); }
.footer-links a:hover{ color:var(--text); }
@media (max-width:640px){
  .footer-company{ padding-left:0; }
}

/* ============================================================ REVEAL */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease), transform .8s var(--ease); will-change:opacity, transform; }
.reveal.in{ opacity:1; transform:none; }
/* Safety net: if animation/observer timelines freeze (backgrounded), force visible */
html.anim-done .hero-title .word{ animation:none !important; transform:none !important; }
html.anim-done .hero [data-rk]{ animation:none !important; opacity:1 !important; transform:none !important; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
  .reveal-mask > span{ transform:none; }
}

/* ============================================================ SWITCHER */
.switcher{ position:fixed; right:20px; bottom:20px; z-index:60; font-family:"IBM Plex Mono", monospace; }
.switcher-tab{
  display:flex; align-items:center; gap:9px; margin-left:auto;
  background:oklch(0.21 0.005 270 / 0.86); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line-2); border-radius:100px; padding:10px 16px;
  font-size:12px; letter-spacing:0.04em; color:var(--text);
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.switcher-tab:hover{ border-color:var(--text); }
.switcher-tab .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 var(--accent-dim); animation:dotPulse 2.6s var(--ease) infinite; }
@keyframes dotPulse{ 0%{box-shadow:0 0 0 0 oklch(0.74 0.045 250 / 0.5)} 70%,100%{box-shadow:0 0 0 9px transparent} }
.switcher-panel{
  position:absolute; right:0; bottom:calc(100% + 12px); width:248px;
  background:oklch(0.19 0.005 270 / 0.92); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--line-2); border-radius:16px; padding:18px;
  display:flex; flex-direction:column; gap:18px;
  opacity:0; transform:translateY(10px) scale(0.98); transform-origin:bottom right; pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
  box-shadow:0 24px 60px oklch(0 0 0 / 0.5);
}
.switcher.open .switcher-panel{ opacity:1; transform:none; pointer-events:auto; }
.sw-label{ font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--faint); margin-bottom:9px; }
.sw-opts{ display:flex; gap:6px; }
.sw-opts button{
  flex:1; font-family:inherit; font-size:11px; letter-spacing:0.01em; color:var(--muted);
  border:1px solid var(--line); border-radius:9px; padding:8px 4px; text-align:center;
  transition:all .3s var(--ease);
}
.sw-opts button:hover{ color:var(--text); border-color:var(--line-2); }
.sw-opts button.is-active{ color:var(--bg); background:var(--text); border-color:var(--text); font-weight:600; }

/* ============================================================ RESPONSIVE */
@media (max-width:880px){
  :root{ --pad:22px; }
  .nav-links{ display:none; }
  .hero{ padding-top:130px; }
  .hero-foot{ flex-direction:column; align-items:flex-start; gap:26px; }
  .work-grid{ grid-template-columns:1fr; }
  .partner-grid{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:repeat(2,1fr); gap:40px 24px; }
  .step{ flex-direction:column; gap:16px; }
  .step-body{ gap:10px; }
  .step-body h3{ min-width:0; }
  .switcher{ right:12px; bottom:12px; }
}

@media (max-width:560px){
  /* Let the hero headline scale with the viewport so it fills the full width
     and wraps evenly, instead of reading as a narrow left-hugging column. */
  .hero-title{ font-size:clamp(40px, 13vw, 72px); line-height:1.0; letter-spacing:-0.03em; }
  .hero-sub{ max-width:none; }
  .stats{ grid-template-columns:1fr 1fr; }
}
