/* =========================================================
   Elena Digital — Design System
   Ink / Plum / Violet / Iris / Paper
   ========================================================= */

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

:root{
  --ink:        #08070B;
  --ink-soft:   #100D17;
  --plum:       #1C0F30;
  --plum-soft:  #241640;
  --violet:     #6E33E0;
  --violet-2:   #8A4CF0;
  --iris:       #B9A6FF;
  --iris-dim:   #EAE3FF;
  --paper:      #F6F4F1;
  --paper-dim:  #EDEAE5;
  --graphite:   #6E6B76;
  --graphite-2: #A8A4B3;
  --line:       rgba(255,255,255,0.10);
  --line-dark:  rgba(8,7,11,0.10);

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  .fade-up, .word-reveal{ opacity:1 !important; transform:none !important; }
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

section{ position:relative; }

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:600;
  letter-spacing:-0.01em;
  color:inherit;
}

.h-display{
  font-size:clamp(2.6rem, 5.4vw, 4.6rem);
  line-height:1.03;
  font-weight:600;
  letter-spacing:-0.02em;
}
.h-section{
  font-size:clamp(1.9rem, 3.4vw, 2.9rem);
  line-height:1.08;
  font-weight:600;
}
.h-card{ font-size:1.25rem; font-weight:600; }

.lede{
  font-size:clamp(1.05rem, 1.6vw, 1.2rem);
  color:var(--graphite);
  max-width:46ch;
  line-height:1.6;
}
.lede.on-dark{ color:var(--graphite-2); }

.label{
  font-family:var(--mono);
  font-size:0.78rem;
  color:var(--violet);
  letter-spacing:0.01em;
}
.label.on-dark{ color:var(--iris); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 24px;
  border-radius:100px;
  font-size:0.98rem;
  font-weight:500;
  font-family:var(--body);
  border:1px solid transparent;
  transition:transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; transition:transform .35s var(--ease); flex-shrink:0; }
.btn:hover svg{ transform:translateX(3px); }
.btn:active{ transform:scale(0.97); }

.btn-primary{ background:var(--ink); color:var(--paper); }
.btn-primary:hover{ background:var(--violet); }
.btn-ghost{ border-color:var(--line-dark); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-on-dark{ border-color:var(--line); color:var(--paper); }
.btn-on-dark:hover{ background:var(--violet); border-color:var(--violet); }
.btn-primary-dark{ background:var(--iris); color:var(--ink); }
.btn-primary-dark:hover{ background:#fff; }

.hero-ctas .btn-primary-dark {
  position: relative;
  overflow: visible;
  transform: none !important;
}
.hero-ctas .btn-primary-dark::after {
  content: '✦';
  position: absolute;
  top: -7px;
  left: -10px;
  color: var(--paper);
  font-size: 11px;
  line-height: 1;
  opacity: 1;
  transform: translate(0, 0);
  animation: cta-star-border .95s linear infinite;
}
.hero-ctas .btn-primary-dark:hover {
  background: #fff;
  color: var(--ink);
  transform: none !important;
}
.hero-ctas .btn-primary-dark:hover::after {
  opacity: 1;
}
@keyframes cta-star-border {
  0% { top:-7px; left:-10px; opacity:1; }
  25% { top:-7px; left:calc(100% - 8px); }
  50% { top:calc(100% - 2px); left:calc(100% - 8px); }
  75% { top:calc(100% - 2px); left:-10px; }
  100% { top:-7px; left:-10px; }
}

/* ---------- nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:220;
  padding:22px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  transition:padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled{
  padding:12px var(--gutter);
  background:rgba(8,7,11,0.62);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo{
  font-family:var(--display); font-weight:700; font-size:1.15rem;
  color:var(--paper); display:flex; align-items:center; gap:10px;
}
.nav-logo .logo-mark{ width:auto; height:30px; border-radius:50%; display:block; flex-shrink:0; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-item{ position:relative; }
.nav-links > a,
.nav-item > a{
  color:var(--graphite-2); font-size:0.94rem; font-weight:500;
  position:relative; padding:4px 0;
}
.nav-links > a::after,
.nav-item > a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--iris);
  transition:width .3s var(--ease);
}
.nav-links > a:hover,
.nav-item > a:hover,
.nav-item:hover > a{ color:var(--paper); }
.nav-links > a:hover::after,
.nav-item > a:hover::after,
.nav-item:hover > a::after{ width:100%; }
.nav-links > a.active,
.nav-item > a.active{ color:var(--paper); }
.nav-sub{
  position:absolute; top:calc(100% + 12px); left:0; min-width:240px;
  background:#140E1E; border:1px solid var(--line); border-radius:14px;
  padding:10px; display:none; flex-direction:column; gap:2px;
  box-shadow:0 18px 50px rgba(0,0,0,.35); z-index:30;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub{ display:flex; }
.nav-sub a{
  color:var(--graphite-2); font-size:0.86rem; font-weight:500;
  padding:9px 12px; border-radius:8px; white-space:nowrap;
}
.nav-sub a:hover{ color:var(--paper); background:rgba(255,255,255,.06); }
.nav-right{ display:flex; align-items:center; gap:22px; }
.nav-burger{
  display:none; width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  background:transparent; align-items:center; justify-content:center; flex-direction:column; gap:4px;
}
.nav-burger span{ width:16px; height:1px; background:var(--paper); display:block; transition:transform .3s var(--ease), opacity .3s var(--ease); }
.nav-burger.open span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity:0; }
.nav-burger.open span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0; z-index:210; background:var(--ink);
  display:flex; flex-direction:column; justify-content:flex-start;
  padding:84px var(--gutter) 28px;
  transform:translateY(-100%); transition:transform .5s var(--ease);
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-nav{ display:flex; flex-direction:column; width:100%; max-width:520px; }
.mobile-menu a,
.mobile-acc-toggle{
  font-family:var(--display); font-size:1.45rem; color:var(--paper);
  padding:12px 0; border-bottom:1px solid var(--line); text-align:left; width:100%;
  background:none; border-left:0; border-right:0; border-top:0;
}
.mobile-acc-toggle{ display:flex; align-items:center; justify-content:space-between; }
.mobile-acc-toggle::after{ content:'+'; font-size:1.2rem; color:var(--iris); }
.mobile-acc.open .mobile-acc-toggle::after{ content:'−'; }
.mobile-acc-panel{ display:none; padding:6px 0 10px 8px; }
.mobile-acc.open .mobile-acc-panel{ display:flex; flex-direction:column; }
.mobile-acc-panel a{
  font-family:var(--body); font-size:0.95rem; font-weight:500;
  color:var(--graphite-2); padding:8px 0; border-bottom:none;
}
.mobile-acc-panel a:hover{ color:var(--paper); }
.mobile-menu .mobile-cta{
  margin-top:22px; align-self:stretch; width:100%; justify-content:center;
  font-family:var(--body); font-size:1rem; font-weight:600;
  padding:14px 22px; border:1px solid transparent; border-radius:100px;
  background:var(--iris); color:var(--ink);
}

body.dark-page .nav-links > a,
body.dark-page .nav-item > a{ color:var(--graphite-2); }
body.dark-page .nav-sub a{ color:var(--graphite-2); }
body.dark-page .nav-sub a:hover{ color:var(--paper); background:rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.hero{
  background:radial-gradient(120% 100% at 78% 10%, var(--plum-soft) 0%, var(--ink) 62%);
  color:var(--paper);
  padding:calc(var(--gutter) + 72px) var(--gutter) 56px;
  min-height:0;
  display:flex; align-items:center;
  position:relative; overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 1fr; gap:40px; align-items:center;
  width:100%; max-width:var(--container); margin:0 auto; position:relative; z-index:2;
}
.hero-copy{ max-width:640px; }
.hero-copy .h-display{ margin:6px 0 22px; }
.hero-copy .lede{ max-width:44ch; margin-bottom:34px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-tagline{ margin-top:42px; color:var(--graphite-2); font-family:var(--display); font-size:1.2rem; }
.hero-visual{ position:relative; height:460px; }
.hero-visual canvas{ width:100%; height:100%; display:block; }

.reveal-line{ overflow:hidden; }
.reveal-line span{ display:inline-block; transform:translateY(110%); transition:transform .8s var(--ease); }
.reveal-line.in span{ transform:translateY(0); }

/* ---------- ticker ---------- */
.ticker-section{ background:var(--ink); color:var(--paper); padding:40px 0; overflow:hidden; }
.ticker-track{ display:flex; white-space:nowrap; }
.ticker-track ul{ display:flex; gap:56px; padding-right:56px; animation:tickerscroll 26s linear infinite; }
.ticker-track li{ font-family:var(--display); font-size:1.5rem; color:var(--graphite-2); display:flex; align-items:center; gap:16px; }
.ticker-track li .sep{ color:var(--violet-2); }
@keyframes tickerscroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- general section rhythm ---------- */
.section{ padding:110px var(--gutter); }
.section-tight{ padding:70px var(--gutter); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:56px; flex-wrap:wrap; }
.section-head .lede{ margin-top:14px; }
.section.on-dark{ background:var(--ink); color:var(--paper); }
.section.on-plum{ background:linear-gradient(180deg, var(--plum) 0%, var(--ink) 100%); color:var(--paper); }

.fade-up{ opacity:0; transform:translateY(38px) scale(0.98); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.fade-up.in{ opacity:1; transform:none; }

/* per-word scroll reveal for headings (auto-applied via script.js) */
.word-reveal{ display:inline-block; opacity:0; transform:translateY(28px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.word-reveal.in{ opacity:1; transform:none; }

/* cursor-following ambient glow */
.cursor-glow{
  position:fixed; top:0; left:0; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle, rgba(110,51,224,0.16), transparent 68%);
  pointer-events:none; z-index:5; transition:transform .15s linear, opacity .3s ease;
  transform:translate(-9999px,-9999px);
}

/* top scroll-progress bar */
.scroll-progress{
  position:fixed; top:0; left:0; height:2px; width:0%; z-index:250;
  background:linear-gradient(90deg, var(--violet), var(--iris));
  transition:width .1s linear;
}

/* card tilt needs perspective + willChange set inline by JS; smooth the return */
.service-card, .project-card{ transition:transform .4s var(--ease), background .4s var(--ease); }

/* ---------- service cards ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-dark); border:1px solid var(--line-dark); }
.service-card{
  background:var(--iris-dim); padding:34px 28px; min-height:220px;
  display:flex; flex-direction:column; justify-content:space-between; gap:26px;
  transition:background .4s var(--ease);
  position:relative; overflow:hidden;
}
.service-card::before{
  content:''; position:absolute; inset:0; background:linear-gradient(135deg, var(--violet), var(--plum-soft));
  opacity:0; transition:opacity .4s var(--ease); z-index:0;
}
.service-card:hover::before{ opacity:1; }
.service-card > *{ position:relative; z-index:1; }
.service-card .icon{ width:34px; height:34px; color:var(--violet); transition:color .4s var(--ease), transform .4s var(--ease); }
.service-card:hover .icon{ color:var(--paper); transform:translateY(-2px); }
.service-card h3{ font-size:1.08rem; transition:color .4s var(--ease); }
.service-card:hover h3{ color:var(--paper); }
.service-card p{ font-size:0.9rem; color:var(--graphite); max-width:34ch; transition:color .4s var(--ease); }
.service-card:hover p{ color:var(--iris-dim); }
.service-card .go{
  font-size:0.85rem; font-weight:500; color:var(--ink); display:flex; align-items:center; gap:6px;
  opacity:0; transform:translateY(6px); transition:all .35s var(--ease);
}
.service-card:hover .go{ opacity:1; transform:none; color:var(--paper); }

/* ---------- interactive services showcase ---------- */
#discipline-showcase {
  min-height: 400vh;
  position: relative;
  overflow: visible;
}

#discipline-showcase .discipline-showcase-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
}

#discipline-showcase .wrap {
  width: min(1200px, calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
}

.showcase{ display:grid; grid-template-columns:0.9fr 1.4fr; gap:0; border:none; border-radius:0; overflow:visible; background:transparent; box-shadow:none; }
.showcase-list{ background:transparent; border:none; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:0; }
.showcase-item{
  width:100%; padding:26px 0; border-bottom:none; cursor:pointer; display:none; opacity:0;
  transform:translateY(36px); transition:opacity .4s var(--ease), transform .4s var(--ease), display .4s var(--ease);
}
.showcase-item:nth-child(1){ display:block; opacity:1; transform:translateY(0); }
.showcase-item.visible{ display:block; opacity:1; transform:translateY(0); }
.showcase-item.reveal-from-bottom{ animation: discipline-rise .45s var(--ease) forwards; }
.showcase-item:last-child{ border-bottom:none; }
.showcase-item h4{ font-size:1.1rem; color:var(--graphite-2); transition:color .3s var(--ease); font-weight:500; }
.showcase-item p{ max-height:0; overflow:hidden; opacity:0; font-size:0.88rem; color:var(--graphite-2); transition:all .35s var(--ease); }
.showcase-item.active{ background:transparent; }
.showcase-item.active h4{ color:var(--paper); }
.showcase-item.active p{ max-height:60px; opacity:1; margin-top:8px; }
.showcase-visual{ background:transparent; padding:0; display:flex; align-items:center; justify-content:center; min-height:620px; height:620px; position:relative; overflow:visible; border:none; box-shadow:none; }
.showcase-visual [data-visual]{ position:relative; inset:auto; width:100%; height:100%; opacity:0; transform:none; transition:opacity .35s var(--ease), transform .45s var(--ease); pointer-events:none; display:none; }
.showcase-visual [data-visual].active{ opacity:1; transform:none; display:block; }

@keyframes discipline-rise {
  0% { opacity: 0; transform: translateY(36px); max-height: 0; }
  100% { opacity:1; transform:translateY(0); max-height:120px; }
}

/* =====================================================
   AI AUTOMATION VISUAL
   ===================================================== */
.ai-automation-section {
    width: min(100%, 700px);
    min-height: 620px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-automation {
    width: min(700px, 94vw);
    height: 560px;
    position: relative;
}

/* =====================================================
   MOBILE APPLICATION DEVELOPMENT VISUAL
   ===================================================== */
.mobile-app-section {
    width: min(100%, 700px);
    min-height: 620px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mobile-app {
    width: min(700px, 94vw);
    height: 560px;
    position: relative;
}

.mobile-app::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(91,46,139,.08) 0%, rgba(91,46,139,.025) 42%, transparent 72%);
    filter: blur(20px);
    pointer-events: none;
}

.app-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.app-line {
    fill: none;
    stroke: rgba(30, 22, 38, .10);
    stroke-width: 1.2;
    transition: stroke .45s ease, stroke-width .45s ease, filter .45s ease;
}

.app-line.active {
    stroke: rgba(103,55,150,.70);
    stroke-width: 1.8;
    filter: drop-shadow(0 0 5px rgba(103,55,150,.35));
}

.app-particle {
    fill: #70409d;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(112,64,157,.75)) drop-shadow(0 0 8px rgba(112,64,157,.25));
}

.phone-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.phone {
    width: 184px;
    height: 365px;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 34px;
    background: linear-gradient(145deg, #1b1720, #302736);
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 30px 75px rgba(35,20,45,.18), 0 0 45px rgba(103,55,150,.07);
    position: relative;
    transition: transform .5s ease, box-shadow .5s ease;
}

.phone.active {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 35px 80px rgba(35,20,45,.19), 0 0 55px rgba(103,55,150,.18);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf9fb, #f4f0f7);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    border-radius: 0 0 12px 12px;
    background: #1b1720;
    z-index: 5;
}

.app-header { padding: 35px 17px 12px; display:flex; align-items:center; justify-content:space-between; }
.app-greeting { font-size: 9px; color: #948b9c; }
.app-title { font-size:16px; font-weight:650; color:#27202d; margin-top:2px; }
.app-avatar { width:25px; height:25px; border-radius:50%; background:linear-gradient(135deg,#e5dced,#cdb9dc); border:2px solid #fff; }

.app-main-card { margin:7px 13px; padding:13px; border-radius:15px; background:#fff; border:1px solid rgba(30,20,40,.055); box-shadow:0 8px 22px rgba(35,25,45,.055); transition: transform .45s ease, box-shadow .45s ease; }
.phone.active .app-main-card { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(35,25,45,.08); }
.card-top { display:flex; justify-content:space-between; align-items:center; }
.card-label { font-size:7px; color:#9d94a2; text-transform:uppercase; letter-spacing:.08em; }
.card-value { font-size:18px; font-weight:650; color:#312737; margin-top:5px; }
.card-change { font-size:7px; color:#68408a; background:#f3edf7; padding:4px 6px; border-radius:6px; }
.mini-graph { width:100%; height:42px; margin-top:12px; }
.graph-line { fill:none; stroke:#79509b; stroke-width:1.5; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100; transition: stroke-dashoffset 1.2s ease; }
.phone.active .graph-line { stroke-dashoffset:0; }

.app-list { margin:13px; display:flex; flex-direction:column; gap:8px; }
.app-list-item { height:42px; display:flex; align-items:center; gap:9px; padding:0 9px; box-sizing:border-box; border-radius:11px; background:rgba(255,255,255,.75); border:1px solid rgba(30,20,40,.045); }
.list-icon { width:25px; height:25px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:#f1ebf5; color:#603681; }
.list-icon svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.list-text { display:flex; flex-direction:column; gap:3px; }
.list-title { font-size:7px; font-weight:600; color:#403747; }
.list-subtitle { font-size:6px; color:#aaa1ae; }

.side-node { position:absolute; transform:translate(-50%, -50%); z-index:5; }
.side-card { width:105px; height:72px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border-radius:17px; background:linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,246,251,.84)); border:1px solid rgba(30,20,40,.075); box-shadow:0 12px 35px rgba(30,20,45,.065), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); transition:transform .45s ease, box-shadow .45s ease, border-color .45s ease; }
.side-node.active .side-card { transform:translateY(-5px); border-color: rgba(103,55,150,.25); box-shadow:0 16px 42px rgba(30,20,45,.09), 0 0 27px rgba(103,55,150,.12); }
.side-icon { width:21px; height:21px; color:#29212e; display:flex; align-items:center; justify-content:center; transition:color .4s ease; }
.side-node.active .side-icon { color:#63358a; }
.side-icon svg { width:100%; height:100%; stroke:currentColor; fill:none; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.side-label { font-size:9px; font-weight:500; color: #433a48; }
.side-status { position:absolute; left:50%; top:calc(100% + 10px); transform:translateX(-50%) translateY(5px); white-space:nowrap; padding:5px 8px; border-radius:8px; background:#f8f5fa; border:1px solid rgba(103,55,150,.10); font-size:7px; color:#725684; opacity:0; transition:opacity .3s ease, transform .3s ease; }
.side-node.active .side-status { opacity:1; transform:translateX(-50%) translateY(0); }

.api-node { left:16%; top:50%; }
.backend-node { left:84%; top:31%; }
.cloud-node { left:84%; top:69%; }

.live-label { position:absolute; top:28px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; font-size:8px; text-transform:uppercase; letter-spacing:.10em; color:rgba(50,40,56,.35); }
.live-dot { width:5px; height:5px; border-radius:50%; background:#6d3d93; box-shadow:0 0 8px rgba(109,61,147,.5); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity:.35; transform:scale(.8); } 50% { opacity:1; transform:scale(1.15); } }

.phone-ripple { position:absolute; left:50%; top:50%; width:184px; height:365px; transform:translate(-50%, -50%) scale(.95); border-radius:34px; border:1px solid rgba(103,55,150,.20); opacity:0; pointer-events:none; }
.phone-ripple.active { animation: phoneRipple 1.2s ease-out; }
@keyframes phoneRipple { 0% { opacity:.5; transform:translate(-50%, -50%) scale(.96); } 100% { opacity:0; transform:translate(-50%, -50%) scale(1.16); } }

@media (max-width: 700px){
  .mobile-app { width:100%; height:520px; transform:none; }
}
@media (max-width: 480px){
  .mobile-app { transform:none; }
}

.ai-automation::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(91,46,139,.12) 0%, rgba(91,46,139,.035) 40%, transparent 72%);
    filter: blur(20px);
    pointer-events: none;
}

.connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.connection {
    fill: none;
    stroke: rgba(209, 184, 255, .72);
    stroke-width: 1.2;
    transition: stroke .45s ease, stroke-width .45s ease, filter .45s ease;
}

.connection.active {
    stroke: rgba(180, 120, 255, .95);
    stroke-width: 1.8;
    filter: drop-shadow(0 0 5px rgba(103,55,150,.35));
}

.particle {
    fill: #70409d;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(112,64,157,.8)) drop-shadow(0 0 8px rgba(112,64,157,.3));
}

.particle.active {
    opacity: 1;
}

.node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.input-node { left: 9%; top: 50%; }
.input-card {
    width: 118px; height: 74px;
    display: flex; align-items: center; gap: 11px;
    padding: 0 15px; box-sizing: border-box;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(30,20,40,.08);
    box-shadow: 0 12px 35px rgba(30,20,45,.065), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.input-node.active .input-card {
    transform: translateX(4px);
    border-color: rgba(103,55,150,.25);
    box-shadow: 0 15px 40px rgba(30,20,45,.08), 0 0 24px rgba(103,55,150,.10);
}
.input-icon {
    width: 29px; height: 29px; flex-shrink: 0;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: #f5f0f8; color: #58337a;
}
.input-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-text { display: flex; flex-direction: column; gap: 3px; }
.input-title { font-size: 10px; font-weight: 600; color: #302936; }
.input-subtitle { font-size: 8px; color: #9a929e; }

.ai-node { left: 42%; top: 50%; z-index: 10; }
.ai-core {
    width: 132px; height: 132px; border-radius: 50%; position: relative;
    display: flex; align-items:center; justify-content:center;
    background: radial-gradient(circle at 34% 28%, #ffffff 0%, #faf7fc 34%, #eee6f5 100%);
    border: 1px solid rgba(92,49,132,.20);
    box-shadow: 0 0 0 11px rgba(99,53,143,.025), 0 0 0 25px rgba(99,53,143,.016), 0 22px 65px rgba(60,35,80,.13);
    transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.ai-core::before { content: ""; position: absolute; inset:12px; border-radius:50%; border: 1px solid rgba(99,53,143,.13); }
.ai-core::after { content: ""; position:absolute; width:48px; height:48px; border-radius:50%; background: radial-gradient(circle, rgba(106,57,151,.27), rgba(106,57,151,.02) 70%); filter: blur(4px); transition: transform .5s ease, opacity .5s ease; }
.ai-node.active .ai-core { transform: scale(1.07); box-shadow: 0 0 0 13px rgba(99,53,143,.04), 0 0 0 27px rgba(99,53,143,.018), 0 0 55px rgba(99,53,143,.28), 0 25px 70px rgba(60,35,80,.15); }
.ai-node.active .ai-core::after { transform: scale(1.35); }
.ai-content { position: relative; z-index:3; display:flex; flex-direction:column; align-items:center; gap:7px; }
.ai-symbol { font-size:18px; font-weight:650; letter-spacing:.12em; color:#4d286b; }
.ai-status { font-size:8px; text-transform:uppercase; letter-spacing:.12em; color:#9b91a3; transition: color .3s ease; }
.ai-node.active .ai-status { color:#64358a; }
.ai-orbit { position:absolute; inset:-20px; border-radius:50%; animation: rotateOrbit 14s linear infinite; }
@keyframes rotateOrbit { to { transform: rotate(360deg); } }
.orbit-dot { position:absolute; width:4px; height:4px; border-radius:50%; background:#71429b; opacity:.42; }
.orbit-dot:nth-child(1) { left:15%; top:27%; }
.orbit-dot:nth-child(2) { right:15%; top:27%; }
.orbit-dot:nth-child(3) { left:27%; bottom:9%; }
.orbit-dot:nth-child(4) { right:27%; bottom:9%; }

.action { width:92px; height:70px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border-radius:17px; background:linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,246,251,.84)); border:1px solid rgba(30,20,40,.075); box-shadow:0 12px 35px rgba(30,20,45,.065), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease; }
.action.active { transform: translateY(-5px); border-color: rgba(103,55,150,.27); box-shadow: 0 16px 42px rgba(30,20,45,.09), 0 0 28px rgba(103,55,150,.13); }
.action-icon { width:21px; height:21px; color:#29212e; display:flex; align-items:center; justify-content:center; transition: color .4s ease; }
.action.active .action-icon { color:#63358a; }
.action-icon svg { width:100%; height:100%; stroke:currentColor; fill:none; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.action-label { font-size:9px; font-weight:500; color:#433a48; transition: color .4s ease; }
.action.active .action-label { color:#563075; }
.action-status { position:absolute; left:50%; top:calc(100% + 10px); transform: translateX(-50%) translateY(5px); white-space:nowrap; padding:5px 8px; border-radius:8px; background:#f8f5fa; border:1px solid rgba(103,55,150,.10); font-size:7px; color:#725684; opacity:0; transition:opacity .3s ease, transform .3s ease; }
.action.active .action-status { opacity:1; transform:translateX(-50%) translateY(0); }
.crm { left:70%; top:23%; }
.whatsapp { left:87%; top:38%; }
.email { left:70%; top:77%; }
.calendar { left:87%; top:62%; }

.pulse-ring { position:absolute; left:42%; top:50%; width:132px; height:132px; transform:translate(-50%, -50%) scale(.8); border-radius:50%; border:1px solid rgba(103,55,150,.25); opacity:0; pointer-events:none; z-index:2; }
.pulse-ring.active { animation:pulseRing 1.2s ease-out; }
@keyframes pulseRing { 0% { opacity:.65; transform:translate(-50%, -50%) scale(.75); } 100% { opacity:0; transform:translate(-50%, -50%) scale(1.55); } }

.live-label { position:absolute; top:30px; left:42%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; font-size:8px; text-transform:uppercase; letter-spacing:.1em; color:rgba(50,40,56,.35); }
.live-dot { width:5px; height:5px; border-radius:50%; background:#6d3d93; box-shadow:0 0 8px rgba(109,61,147,.5); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity:.35; transform: scale(.8); } 50% { opacity:1; transform: scale(1.15); } }

@media (max-width: 700px){ .ai-automation-section { min-height:570px; } .ai-automation { width:100%; height:520px; transform:none; } }
@media (max-width: 480px){ .ai-automation { transform:none; } }

/* =====================================================
   WEBSITE DEVELOPMENT VISUAL
   ===================================================== */
.website-dev-section {
    width: min(100%, 700px);
    min-height: 620px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.website-dev {
    width: min(1050px, 94vw);
    height: 560px;
    position: relative;
}

.website-dev::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(91, 46, 139, .08) 0%, rgba(91, 46, 139, .025) 43%, transparent 72%);
    filter: blur(22px);
    pointer-events: none;
}

.website-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.web-line {
    fill: none;
    stroke: rgba(30, 22, 38, .10);
    stroke-width: 1.2;
    transition: stroke .45s ease, stroke-width .45s ease, filter .45s ease;
}

.web-line.active {
    stroke: rgba(103, 55, 150, .72);
    stroke-width: 1.8;
    filter: drop-shadow(0 0 5px rgba(103,55,150,.35));
}

.web-particle {
    fill: #70409d;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(112,64,157,.8)) drop-shadow(0 0 8px rgba(112,64,157,.25));
}

.website-browser-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.website-browser {
    width: 390px;
    height: 280px;
    border-radius: 19px;
    background: #ffffff;
    border: 1px solid rgba(30,20,40,.10);
    box-shadow: 0 30px 80px rgba(35,20,45,.13), 0 0 50px rgba(103,55,150,.07);
    overflow: hidden;
    transition: transform .5s ease, box-shadow .5s ease;
}

.website-browser.active {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 35px 85px rgba(35,20,45,.16), 0 0 55px rgba(103,55,150,.14);
}

.website-browser-bar {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    background: #f8f7f9;
    border-bottom: 1px solid rgba(30,20,40,.06);
}

.website-browser-dots {
    display: flex;
    gap: 5px;
}

.website-browser-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8d3db;
}

.website-browser-url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 145px;
    height: 18px;
    border-radius: 6px;
    background: #efedf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: #9b939f;
}

.website-screen {
    height: calc(100% - 34px);
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8f4fa);
    overflow: hidden;
}

.website-nav {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.website-site-logo {
    width: 43px;
    height: 7px;
    border-radius: 4px;
    background: #27202d;
}

.website-site-nav-links {
    display: flex;
    gap: 13px;
}

.website-site-nav-link {
    width: 25px;
    height: 4px;
    border-radius: 4px;
    background: #d8d2dc;
}

.website-hero {
    padding: 28px 30px 0;
    position: relative;
}

.website-hero-eyebrow {
    width: 45px;
    height: 5px;
    border-radius: 4px;
    background: #8b68a6;
    margin-bottom: 9px;
}

.website-hero-heading {
    width: 145px;
    height: 13px;
    border-radius: 5px;
    background: #29222f;
    margin-bottom: 7px;
}

.website-hero-heading-small {
    width: 108px;
    height: 13px;
    border-radius: 5px;
    background: #5d3976;
    margin-bottom: 12px;
}

.website-hero-copy {
    width: 130px;
    height: 5px;
    border-radius: 4px;
    background: #c7c0ca;
    margin-bottom: 4px;
}

.website-hero-copy-short {
    width: 105px;
}

.website-hero-button {
    margin-top: 13px;
    width: 55px;
    height: 19px;
    border-radius: 6px;
    background: #30233b;
}

.website-hero-visual {
    position: absolute;
    right: 22px;
    top: 38px;
    width: 125px;
    height: 115px;
    border-radius: 13px;
    background: linear-gradient(145deg, #e8deef, #c9b4d7);
    overflow: hidden;
}

.website-hero-visual::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -20px;
    bottom: -25px;
    border-radius: 50%;
    background: rgba(83,43,111,.25);
}

.website-hero-visual::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    left: 20px;
    top: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    filter: blur(2px);
}

.website-build-indicator {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    border-radius: 4px;
    background: rgba(103,55,150,.10);
    overflow: hidden;
    opacity: .7;
}

.website-build-progress {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #71429b;
    transition: width 1.5s ease;
}

.website-browser.active .website-build-progress {
    width: 100%;
}

.website-system-node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.website-system-card {
    width: 105px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,246,251,.84));
    border: 1px solid rgba(30,20,40,.075);
    box-shadow: 0 12px 35px rgba(30,20,45,.065), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}

.website-system-node.active .website-system-card {
    transform: translateY(-5px);
    border-color: rgba(103,55,150,.26);
    box-shadow: 0 16px 42px rgba(30,20,45,.09), 0 0 28px rgba(103,55,150,.12);
}

.website-system-icon {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #29212e;
    transition: color .4s ease;
}

.website-system-node.active .website-system-icon {
    color: #63358a;
}

.website-system-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.website-system-label {
    font-size: 9px;
    font-weight: 500;
    color: #433a48;
}

.website-system-status {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(5px);
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8f5fa;
    border: 1px solid rgba(103,55,150,.10);
    font-size: 7px;
    color: #725684;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.website-system-node.active .website-system-status {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.website-design-node { left: 13%; top: 25%; }
.website-code-node { left: 13%; top: 75%; }
.website-cms-node { left: 87%; top: 25%; }
.website-api-node { left: 87%; top: 75%; }

.website-live-label {
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: rgba(50,40,56,.35);
}

.website-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6d3d93;
    box-shadow: 0 0 8px rgba(109,61,147,.5);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%,100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

.website-build-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 390px;
    height: 280px;
    transform: translate(-50%, -50%) scale(.98);
    border-radius: 19px;
    border: 1px solid rgba(103,55,150,.20);
    opacity: 0;
}

.website-build-ring.active {
    animation: buildRing 1.2s ease-out;
}

@keyframes buildRing {
    0% { opacity: .55; transform: translate(-50%, -50%) scale(.98); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}

@media (max-width: 700px){
    .website-dev { width: 100%; height: 520px; transform: none; }
}

@media (max-width: 480px){
    .website-dev { transform: none; }
}

/* =====================================================
   CUSTOM SOFTWARE / SAAS — MODULAR PRODUCT CORE
   ===================================================== */

.software-saas-core-section {
    width: 100%;
    min-height: 620px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.software-saas-core {
    width: min(1050px, 94vw);
    height: 560px;
    position: relative;
}

.software-saas-core::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(91,46,139,.085) 0%, rgba(91,46,139,.025) 43%, transparent 72%);
    filter: blur(25px);
    pointer-events: none;
}

.software-core-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.software-core-line {
    fill: none;
    stroke: rgba(35,25,42,.09);
    stroke-width: 1.15;
    transition: stroke .5s ease, stroke-width .5s ease, filter .5s ease;
}

.software-core-line.active {
    stroke: rgba(105,57,151,.7);
    stroke-width: 1.7;
    filter: drop-shadow(0 0 5px rgba(105,57,151,.35));
}

.software-core-particle {
    fill: #70409d;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(112,64,157,.8)) drop-shadow(0 0 9px rgba(112,64,157,.25));
}

.software-product-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    height: 190px;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.software-core-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.software-core-ring-one {
    width: 235px;
    height: 235px;
    border: 1px solid rgba(103,55,150,.08);
}

.software-core-ring-two {
    width: 290px;
    height: 290px;
    border: 1px solid rgba(103,55,150,.045);
}

.software-core-ring.active {
    animation: softwareCoreOrbit 3.5s linear infinite;
}

@keyframes softwareCoreOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.software-core-body {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 178px;
    height: 132px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,242,249,.94));
    border: 1px solid rgba(103,55,150,.16);
    box-shadow: 0 25px 60px rgba(35,20,45,.13), 0 0 45px rgba(103,55,150,.08), inset 0 1px 0 rgba(255,255,255,1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    transition: transform .5s ease, box-shadow .5s ease;
}

.software-product-core.active .software-core-body {
    transform: translate(-50%, -50%) scale(1.035);
    box-shadow: 0 28px 65px rgba(35,20,45,.15), 0 0 60px rgba(103,55,150,.15), inset 0 1px 0 rgba(255,255,255,1);
}

.software-core-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: linear-gradient(rgba(103,55,150,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(103,55,150,.055) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

.software-core-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(145deg, #382342, #68408a);
    box-shadow: 0 12px 25px rgba(60,30,80,.22), 0 0 25px rgba(103,55,150,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
}

.software-core-symbol::before,
.software-core-symbol::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
}

.software-core-symbol::before { width: 24px; height: 24px; }
.software-core-symbol::after {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.9);
    border: none;
    box-shadow: 0 0 12px rgba(255,255,255,.6);
}

.software-internal-node {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9b7ab5;
    opacity: .45;
    transition: opacity .4s ease, transform .4s ease;
}

.software-product-core.active .software-internal-node {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(103,55,150,.5);
}

.software-internal-node-a { left: 27px; top: 31px; }
.software-internal-node-b { right: 29px; top: 31px; }
.software-internal-node-c { left: 27px; bottom: 31px; }
.software-internal-node-d { right: 29px; bottom: 31px; }

.software-core-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(60,45,68,.45);
    white-space: nowrap;
}

.software-module {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.software-module-card {
    width: 112px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,246,251,.86));
    border: 1px solid rgba(30,20,40,.075);
    box-shadow: 0 14px 38px rgba(30,20,45,.065), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .45s ease;
}

.software-module.active .software-module-card {
    transform: translateY(-5px);
    border-color: rgba(103,55,150,.28);
    box-shadow: 0 18px 45px rgba(30,20,45,.09), 0 0 28px rgba(103,55,150,.12);
}

.software-module-icon {
    width: 21px;
    height: 21px;
    color: #34283b;
    transition: color .4s ease;
}

.software-module.active .software-module-icon {
    color: #693b8b;
}

.software-module-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.software-module-label {
    font-size: 9px;
    font-weight: 500;
    color: #443949;
}

.software-module-status {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(5px);
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8f5fa;
    border: 1px solid rgba(103,55,150,.10);
    font-size: 7px;
    color: #725684;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.software-module.active .software-module-status {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.software-crm { left: 17%; top: 24%; }
.software-users { left: 17%; top: 76%; }
.software-payments { left: 83%; top: 24%; }
.software-workflow { left: 83%; top: 76%; }

.software-api-module {
    left: 50%;
    top: 93%;
}

.software-api-module .software-module-card {
    width: 92px;
    height: 58px;
    flex-direction: row;
    gap: 8px;
}

.software-api-module .software-module-status {
    top: calc(100% + 8px);
}

.software-core-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180px;
    height: 135px;
    transform: translate(-50%, -50%) scale(.95);
    border-radius: 28px;
    border: 1px solid rgba(103,55,150,.25);
    opacity: 0;
    pointer-events: none;
}

.software-core-pulse.active {
    animation: softwareCorePulse 1.4s ease-out;
}

@keyframes softwareCorePulse {
    0% { opacity: .55; transform: translate(-50%, -50%) scale(.95); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

.software-live-label {
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: rgba(50,40,56,.35);
}

.software-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6d3d93;
    box-shadow: 0 0 8px rgba(109,61,147,.5);
    animation: softwareLivePulse 2s ease-in-out infinite;
}

@keyframes softwareLivePulse {
    0%,100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 700px){
    .software-saas-core { width: 100%; height: 520px; transform: none; }
}

@media (max-width: 480px){
    .software-saas-core { transform: none; }
}

/* ---------- projects ---------- */
.projects-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:22px; }
.project-card{
  border-radius:18px; overflow:hidden; background:var(--ink); color:var(--paper);
  position:relative; grid-column:span 3; min-height:340px; display:flex; flex-direction:column; justify-content:flex-end;
  transition:transform .5s var(--ease);
}
.project-card.wide{ grid-column:span 6; min-height:400px; }
.project-card.tall{ grid-column:span 2; min-height:480px; }
.project-card .art{
  position:absolute; inset:0; background:linear-gradient(135deg, var(--plum-soft), var(--violet) 130%);
  transition:transform .6s var(--ease);
}
.project-card .content{ background:linear-gradient(180deg, transparent 20%, rgba(8,7,11,.78)); }
.project-card.work-ai .art{ background:linear-gradient(145deg, #3a1d73, var(--violet) 55%, #1a0c38); }
.project-card.work-saas .art{ background:linear-gradient(145deg, #1a2454, #4c3ad8 60%, #120c28); }
.project-card.work-mobile .art{ background:linear-gradient(145deg, #2a1650, #8A4CF0 70%, #0e0818); }
.project-card.work-ecom .art{ background:linear-gradient(145deg, #3d1860, #6E33E0 50%, #24103a); }
.project-card.work-staff .art{ background:linear-gradient(145deg, #1c1638, #5b3cc9 65%, #0c0a14); }
.project-card.is-hidden{ display:none; }
.project-card:hover .art{ transform:scale(1.06); }
.project-card .content{ position:relative; z-index:2; padding:30px; }
.project-card .tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.project-card .tag{ font-family:var(--mono); font-size:0.72rem; padding:4px 10px; border:1px solid var(--line); border-radius:100px; color:var(--iris-dim); }
.project-card .industry{ font-size:0.82rem; color:var(--graphite-2); margin-bottom:6px; }
.project-card h3{ font-size:clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom:8px; }
.project-card .desc{ font-size:0.92rem; color:var(--graphite-2); max-width:52ch; margin-bottom:16px; }
.project-card .view{ font-size:0.9rem; font-weight:500; display:inline-flex; align-items:center; gap:6px; }

/* ---------- AI section ---------- */
.ai-caps{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:56px; }
.ai-cap{ background:var(--ink); padding:28px; }
.ai-cap h4{ font-size:1rem; margin-bottom:8px; }
.ai-cap p{ font-size:0.85rem; color:var(--graphite-2); }
.flow{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:60px; flex-wrap:wrap; }
.flow-node{ flex:1; min-width:140px; text-align:center; padding:26px 14px; border:1px solid var(--line); border-radius:14px; background:var(--plum-soft); }
.flow-node span{ font-family:var(--mono); font-size:0.78rem; color:var(--iris); }
.flow-node p{ font-family:var(--display); font-size:1.05rem; margin-top:8px; }
.flow-arrow{ color:var(--graphite-2); flex-shrink:0; width:20px; }

/* ---------- video ---------- */
.video-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.video-card{ cursor:pointer; }
.video-thumb{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/9; background:var(--plum-soft); margin-bottom:14px; }
.video-thumb img{ width:100%; height:100%; object-fit:cover; }
.video-embed iframe{ width:100%; height:100%; display:block; border:0; }
.video-card--youtube{ cursor:default; }
.youtube-poster{ position:relative; display:block; width:100%; height:100%; padding:0; border:0; background:var(--plum-soft); overflow:hidden; }
.youtube-poster img{ width:100%; height:100%; object-fit:cover; }
.youtube-poster .play-btn{ border:0; }
.youtube-poster:hover .play-btn{ transform:scale(1.08); }
.play-btn{
  position:absolute; inset:0; margin:auto; width:56px; height:56px; border-radius:50%;
  background:rgba(246,244,241,0.92); display:flex; align-items:center; justify-content:center;
  transition:transform .3s var(--ease);
}
.video-card:hover .play-btn{ transform:scale(1.08); }
.play-btn svg{ width:18px; height:18px; color:var(--ink); margin-left:2px; }
.video-card h4{ font-size:1rem; margin-bottom:6px; }
.video-card p{ font-size:0.86rem; color:var(--graphite); }
.watch-youtube{ display:inline-block; color:var(--graphite); font-size:.84rem; margin-top:2px; transition:color .25s var(--ease); }
.watch-youtube:hover{ color:var(--violet); }
.video-channel-link{ color:var(--ink); font-size:.9rem; font-weight:500; border-bottom:1px solid var(--line-dark); padding-bottom:4px; transition:color .25s var(--ease), border-color .25s var(--ease); }
.video-channel-link:hover{ color:var(--violet); border-color:var(--violet); }
.video-social-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:30px; padding-top:22px; border-top:1px solid var(--line-dark); }
.video-social-row a{ display:inline-flex; align-items:center; gap:8px; padding:8px 11px; border-radius:100px; color:var(--graphite); font-size:.86rem; transition:background .25s var(--ease), color .25s var(--ease); }
.video-social-row a:hover{ color:var(--ink); background:rgba(8,7,11,.05); }
.video-social-row svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; }
.video-social-row a:first-child svg{ fill:currentColor; stroke:none; }

.modal{ position:fixed; inset:0; background:rgba(8,7,11,0.9); z-index:300; display:none; align-items:center; justify-content:center; padding:30px; }
.modal.open{ display:flex; }
.modal-inner{ width:100%; max-width:920px; aspect-ratio:16/9; position:relative; }
.modal-inner iframe{ width:100%; height:100%; border:0; border-radius:10px; }
.modal-close{ position:absolute; top:-46px; right:0; color:var(--paper); background:none; border:none; font-size:1.6rem; }

/* ---------- why / values ---------- */
.values-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:36px; }
.values-grid.principles{ grid-template-columns:repeat(3,1fr); }
.value-item .icon{ width:30px; height:30px; color:var(--ink); margin-bottom:18px; }
.value-item h4{ font-size:1.05rem; margin-bottom:10px; }
.value-item p{ font-size:0.9rem; color:var(--graphite); }

/* ---------- process timeline ---------- */
.timeline{ display:flex; flex-direction:column; }
.timeline-item{
  display:grid; grid-template-columns:90px 1fr; gap:30px; padding:34px 0; border-top:1px solid var(--line-dark);
  align-items:flex-start;
}
.timeline-item:last-child{ border-bottom:1px solid var(--line-dark); }
.timeline-num{ font-family:var(--mono); color:var(--violet); font-size:0.95rem; }
.timeline-item h3{ font-size:1.4rem; margin-bottom:8px; }
.timeline-item p{ color:var(--graphite); max-width:52ch; }
.timeline-bar{ height:2px; background:var(--line-dark); position:relative; margin-top:4px; overflow:hidden; }
.timeline-bar i{ position:absolute; inset:0; background:var(--violet); transform:scaleX(0); transform-origin:left; transition:transform .8s var(--ease); }
.timeline-item.in .timeline-bar i{ transform:scaleX(1); }

/* ---------- process story scroll story ---------- */
#process {
  min-height: 420vh;
  padding: 0;
  position: relative;
  overflow: visible;
  background: var(--paper);
}

#process .process-story-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}

#process .process-story-sticky .wrap {
  width: min(var(--container), calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(420px, 1.05fr);
  gap: 50px;
  align-items: center;
}

#process .section-head {
  width: min(680px, 100%);
  display: block;
}

#process .section-head .h-section {
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
}

#process .process-progression-icon {
  display: block;
  width: 48px;
  height: 24px;
  margin-top: 18px;
  color: var(--violet);
  opacity: .82;
}

#process .timeline {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  margin-left: auto;
}

#process .timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 0;
  border-top: none;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(76px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .7s var(--ease), transform .7s var(--ease), max-height .7s var(--ease), padding .7s var(--ease), border-top .7s var(--ease);
}

#process .timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 160px;
  padding: 34px 0;
  border-top: 1px solid var(--line-dark);
}

#process .timeline-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

#process .timeline-num {
  font-family: var(--mono);
  color: var(--violet);
  font-size: 0.95rem;
}

#process .timeline-item h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--ink);
}

#process .timeline-item p {
  color: var(--graphite);
  max-width: 52ch;
}

#process .timeline-bar {
  height: 2px;
  background: var(--line-dark);
  position: relative;
  margin-top: 4px;
  overflow: hidden;
}

#process .timeline-bar i {
  position: absolute;
  inset: 0;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}

#process .timeline-item.visible .timeline-bar i {
  transform: scaleX(1);
}

/* ---------- technology ecosystem ---------- */
.tech-ecosystem-section{
  position:relative;
  background:var(--paper);
  color:var(--ink);
  overflow:hidden;
  margin-bottom:20px;
}

.tech-ecosystem-section::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  border-radius:0;
  background:
    radial-gradient(circle at 50% 45%, rgba(222,210,255,0.86), transparent 20%),
    radial-gradient(circle at 77% 82%, rgba(118,81,206,0.42), transparent 26%),
    radial-gradient(circle at 24% 84%, rgba(255,255,255,0.92), transparent 19%),
    linear-gradient(180deg, var(--paper) 0%, var(--plum-soft) 50%, var(--plum) 100%);
  opacity:1;
  pointer-events:none;
  z-index:0;
}

.tech-ecosystem-section .section-head{ margin-bottom:30px; position:relative; z-index:2; }
.tech-ecosystem-section .section-head .h-section{ color:var(--ink); }

.tech-ecosystem{
  position:relative;
  z-index:2;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.tech-ecosystem-map{
  position:relative;
  min-height:560px;
  background:transparent;
  border:none;
  border-bottom:none;
  overflow:visible;
}

.tech-map-grid{
  position:absolute;
  inset:-30px;
  background-image: radial-gradient(var(--line-dark) 1px, transparent 1px);
  background-size:22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), transparent 100%);
  opacity:0.75;
  transform: rotate(-5deg);
}

.tech-connecting-lines {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
}

.tech-connecting-lines .tech-line {
  fill:none;
  stroke:var(--line-dark);
  stroke-width:1;
  stroke-dasharray:4 4;
  stroke-linecap:round;
  opacity:0.88;
  stroke-dashoffset:0;
  animation:drawTechLine 1.5s ease forwards;
}

.tech-connecting-lines .tech-line-frontend { stroke:var(--line-dark); opacity:0.84; }
.tech-connecting-lines .tech-line-backend { stroke:var(--violet); opacity:0.74; }
.tech-connecting-lines .tech-line-mobile { stroke:var(--graphite-2); opacity:0.76; }
.tech-connecting-lines .tech-line-cloud { stroke:var(--plum); opacity:0.8; }
.tech-connecting-lines .tech-line-ai { stroke:var(--iris); opacity:0.8; }

.tech-core {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:180px;
  height:180px;
  border-radius:50%;
  background:linear-gradient(180deg, var(--ink), var(--plum));
  color:var(--paper);
  box-shadow:0 0 0 1px rgba(255,255,255,0.9), 0 0 50px rgba(113,74,214,0.46), inset 0 0 22px rgba(255,255,255,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:4;
}

.tech-core::before,
.tech-core::after{
  content:"";
  position:absolute;
  inset:-20px;
  border-radius:50%;
  border:1px solid var(--line);
}

.core-orbit{ position:absolute; inset:-3px; border-radius:50%; border:1px solid var(--line); }
.orbit-one{ inset:-11px; }
.orbit-two{ inset:8px; border-style:dashed; }

.core-label{
  font-family:var(--mono);
  font-size:0.74rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--graphite-2);
}

.core-product{
  font-family:var(--display);
  font-size:1.2rem;
  margin-top:12px;
}

.tech-node {
  position:absolute;
  z-index:3;
  padding:8px 14px;
  border-radius:100px;
  border:1px solid var(--line-dark);
  background:rgba(250,249,253,0.84);
  color:var(--ink);
  font-family:var(--body);
  font-size:0.76rem;
  letter-spacing:0.03em;
  box-shadow:0 10px 24px rgba(39,25,60,0.08);
  transition:background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease), opacity .4s var(--ease), filter .4s var(--ease);
  transform:translateY(0);
}

.tech-node::before{ content:""; position:absolute; left:-8px; right:-8px; top:-8px; bottom:-8px; border-radius:inherit; border:1px solid transparent; transition:all .4s var(--ease); }

.tech-node .node-name{ position:relative; }

.tech-node:hover,
.tech-node.active{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
  transform:translateY(-4px);
  box-shadow:0 16px 36px rgba(90,50,160,0.24);
}

.tech-node:hover::before,
.tech-node.active::before{ border-color:var(--violet-2); }

.tech-node[data-category="frontend"]{ color:var(--ink); }
.tech-node[data-category="backend"]{ color:var(--ink); }
.tech-node[data-category="mobile"]{ color:var(--ink); }
.tech-node[data-category="cloud"]{ color:var(--ink); }
.tech-node[data-category="ai"]{ color:var(--ink); }

.tech-node[data-category="frontend"].active,
.tech-node[data-category="frontend"]:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.tech-node[data-category="backend"].active,
.tech-node[data-category="backend"]:hover{ background:var(--plum); color:var(--paper); border-color:var(--plum); }
.tech-node[data-category="mobile"].active,
.tech-node[data-category="mobile"]:hover{ background:var(--graphite); color:var(--paper); border-color:var(--graphite); }
.tech-node[data-category="cloud"].active,
.tech-node[data-category="cloud"]:hover{ background:var(--iris); color:var(--paper); border-color:var(--iris); }
.tech-node[data-category="ai"].active,
.tech-node[data-category="ai"]:hover{ background:var(--violet); color:var(--paper); border-color:var(--violet); }

.tech-node.fade-in{ animation:techNodeIn .8s var(--ease) both; }

.tech-category-strip {
  display:grid;
  grid-template-columns:repeat(5, minmax(120px, 1fr));
  gap:0;
  padding:22px 24px;
  background:var(--paper);
}

.tech-category {
  padding:14px 14px;
  border-left:1px solid var(--line-dark);
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:90px;
  cursor:pointer;
  transition:background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}

.tech-category:first-child { border-left:none; }

.tech-category-number {
  font-family:var(--mono);
  font-size:0.72rem;
  color:var(--violet);
  letter-spacing:0.2em;
}

.tech-category-name {
  font-family:var(--display);
  font-size:1rem;
  color:var(--ink);
}

.tech-category-stack {
  font-size:0.74rem;
  color:var(--graphite);
}

.tech-category:hover,
.tech-category.active {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

.tech-category:hover .tech-category-number,
.tech-category.active .tech-category-number,
.tech-category:hover .tech-category-name,
.tech-category.active .tech-category-name,
.tech-category:hover .tech-category-stack,
.tech-category.active .tech-category-stack { color:var(--paper); }

.tech-category:hover .tech-category-stack,
.tech-category.active .tech-category-stack{ color:var(--graphite-2); }

.tech-category:hover .tech-category-name,
.tech-category.active .tech-category-name{ color:var(--paper); }

@keyframes drawTechLine {
  from{ stroke-dashoffset:80; }
  to{ stroke-dashoffset:0; }
}

@keyframes techNodeIn {
  from{ opacity:0; transform:translateY(12px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (max-width: 1024px){
  .tech-ecosystem-map{ min-height:620px; }
  .tech-category-strip{ grid-template-columns:repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 720px){
  .tech-category-strip{ grid-template-columns:1fr; }
  .tech-category{ border-left:none; border-top:1px solid var(--line-dark); }
  .tech-category:first-child{ border-top:none; }
  .tech-ecosystem-map{ min-height:640px; }
}

/* ---------- about ---------- */
.about-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);
  gap:48px 56px;
  align-items:center;
}
.about-copy{ max-width:72ch; }
.about-copy .lede{ margin-bottom:22px; }
.about-copy .lede:last-child{ margin-bottom:0; }
.about-visual{ aspect-ratio:4/5; border-radius:20px; background:linear-gradient(160deg, var(--plum) 0%, var(--ink) 100%); position:relative; overflow:hidden; min-height:320px; }
.about-visual img{
  display:block; width:100%; height:100%; object-fit:cover; object-position:center center;
}
.about-visual.visual-ai{ background:linear-gradient(160deg,#3A1478,#F472B6); }
.about-visual.visual-web{ background:linear-gradient(160deg,#0EA5E9,#6366F1); }
.about-visual.visual-mobile{ background:linear-gradient(160deg,#22D3EE,#DB2777); }
.about-visual.visual-saas{ background:linear-gradient(160deg,#F59E0B,#7C3AED); }
.about-visual.visual-design{ background:linear-gradient(160deg,#FB7185,#38BDF8); }
.about-visual.visual-ecom{ background:linear-gradient(160deg,#F97316,#8B5CF6); }
.about-visual.visual-cloud{ background:linear-gradient(160deg,#38BDF8,#1E1B4B); }
.about-visual.visual-transform{ background:linear-gradient(160deg,#111827,#34D399); }
.about-visual.visual-staff{ background:linear-gradient(160deg,#F472B6,#1D4ED8); }
.about-visual.visual-about{ background:linear-gradient(160deg,#6E33E0,#22D3EE); }

/* ---------- stats ---------- */
.stats-line{ font-family:var(--display); font-size:clamp(1.3rem,3vw,2rem); color:var(--graphite-2); text-align:center; }
.stats-line b{ color:var(--paper); }

/* ---------- office location ---------- */
.office-wrap{ max-width:520px; }
.office-card{ width:100%; background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:20px; padding:30px; }
.office-title{ font-family:var(--display); font-size:1.1rem; color:var(--paper); margin-bottom:10px; }
.office-address{ font-family:var(--body); font-size:0.9rem; color:var(--graphite-2); margin-bottom:20px; }
.office-map{ border-radius:14px; overflow:hidden; border:1px solid var(--line); min-height:180px; margin-bottom:20px; background:var(--plum-soft); }
.office-map iframe{ width:100%; height:180px; border:0; display:block; filter:saturate(0.95) contrast(1.08); }
.office-contacts{ display:flex; flex-direction:column; gap:12px; }
.office-contacts a{ color:var(--paper); font-family:var(--body); font-size:0.92rem; }
.office-contacts a:hover{ color:var(--iris); }

/* ---------- CTA ---------- */
.cta-section{
  background:radial-gradient(120% 140% at 20% 0%, var(--plum-soft), var(--ink) 65%);
  color:var(--paper); padding:130px var(--gutter); text-align:left; position:relative; overflow:hidden;
}
.cta-grid{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 0.95fr);
  gap:48px;
  align-items:center;
  position:relative;
  z-index:1;
}
.cta-inner{ max-width:640px; position:relative; z-index:1; }
.cta-section .h-display{ margin-bottom:20px; }
.cta-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-top:34px; }
.cta-glow{ position:absolute; width:600px; height:600px; border-radius:50%; background:var(--violet); filter:blur(160px); opacity:0.35; top:-200px; right:-150px; }

.cta-form-wrap{ background:rgba(255,255,255,0.035); border:1px solid var(--line); border-radius:24px; padding:26px; backdrop-filter:blur(8px); }
.cta-form{ font-family:var(--body); color-scheme:dark; }
.cta-form .compact-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.cta-form .field{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.cta-form .field.full{ grid-column:1 / -1; }
.cta-form label{ font-family:var(--body); font-size:0.76rem; color:var(--graphite-2); letter-spacing:0.12em; text-transform:uppercase; }
.cta-form .required{ color:var(--iris); }
.cta-form input,
.cta-form select,
.cta-form textarea{
  width:100%; background:rgba(250,247,246,0.035); color:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 14px;
  font-family:var(--body);
  font-size:0.9rem;
  resize:vertical;
  outline:none;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.cta-form input,
.cta-form select,
.cta-form textarea{ color:var(--paper); color-scheme:dark; }
.cta-form select{
  color:#F6F4F1;
  background-color:#1C0F30;
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F6F4F1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:36px;
}
.cta-form select option,
.cta-form select optgroup{ color:#F6F4F1; background-color:#1C0F30; }
.cta-form input::placeholder,
.cta-form textarea::placeholder{ color:var(--graphite-2); }
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus{ border-color:var(--iris); box-shadow:0 0 0 1px var(--iris); color:var(--paper); }
.cta-form textarea{ min-height:110px; }
.cta-form .field-error{ font-size:0.76rem; color:#F8B4B4; min-height:14px; font-family:var(--mono); }
.cta-form .field.err input,
.cta-form .field.err textarea,
.cta-form .field.err select{ border-color:#F8B4B4; }
.cta-form .form-status{ display:none; margin-top:10px; font-size:0.84rem; border-radius:10px; padding:12px 14px; }
.cta-form .form-status.show{ display:block; }
.cta-form .form-status.success{ display:block; background:rgba(195,240,204,0.12); color:var(--paper); border:1px solid var(--line); }
.cta-form .form-status.error{ display:block; background:rgba(255,230,230,0.1); color:#F8B4B4; border:1px solid var(--line); }
.cta-form .form-submit{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 22px;
  border-radius:100px;
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--paper);
  font-family:var(--display);
  font-size:0.94rem;
  font-weight:600;
  transform:none !important;
  transition:background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.cta-form .form-submit:hover{
  background:var(--iris);
  color:var(--paper);
  border-color:var(--iris);
  box-shadow:0 0 0 1px var(--paper), 0 0 18px rgba(148,120,255,0.32);
  transform:none !important;
}
.cta-form .form-submit:active{ transform:none !important; }
.cta-form .form-submit[disabled]{ opacity:0.7; pointer-events:none; }
.cta-form .btn-loader{ display:none; width:14px; height:14px; border-radius:50%; border:2px solid var(--ink); border-top-color:transparent; animation:spin 0.8s linear infinite; }
.cta-form .loading .btn-loader{ display:inline-block; }
.cta-form .loading .btn-text{ opacity:0.9; }

/* ---------- contact page ---------- */
.contact-hero{ min-height:0; padding-bottom:40px; }
.contact-layout{ display:grid; grid-template-columns:minmax(300px, .82fr) minmax(0, 1.18fr); gap:48px; align-items:start; }
.contact-details{ display:grid; gap:16px; }
.contact-detail{ border:1px solid var(--line); border-radius:16px; padding:20px; background:rgba(255,255,255,.035); }
.contact-detail span{ display:block; font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--iris); margin-bottom:9px; }
.contact-detail a,.contact-detail p{ color:var(--paper); font-size:1rem; line-height:1.5; }
.contact-detail a:hover{ color:var(--iris); }
.contact-map{ border-radius:20px; overflow:hidden; border:1px solid var(--line); background:var(--plum-soft); min-height:300px; }
.contact-map iframe{ width:100%; height:300px; display:block; border:0; filter:saturate(.95) contrast(1.08); }
.contact-form-section{ padding-top:72px; padding-bottom:72px; }
.contact-form-section .cta-form-wrap{ max-width:850px; margin:0 auto; }
@media (max-width: 960px){ .contact-layout{ grid-template-columns:1fr; gap:20px; } .contact-form-section{ padding-top:48px; padding-bottom:48px; } .contact-map iframe{ height:220px; } .section.on-dark .contact-layout{ margin-top:0; } }

@keyframes spin{ to{ transform:rotate(360deg); } }

@media (max-width: 960px){
  .cta-grid{ grid-template-columns:1fr; }
  .cta-form-wrap{ max-width:640px; }
}

/* ---------- footer ---------- */
.footer{ background:var(--ink); color:var(--graphite-2); padding:80px var(--gutter) 30px; }
.footer-top{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:40px; padding-bottom:60px; border-bottom:1px solid var(--line); }
.footer-brand .nav-logo{ margin-bottom:16px; }
.footer-brand p{ font-size:0.92rem; max-width:32ch; }
.footer-col h5{ font-family:var(--body); font-size:0.86rem; color:var(--paper); margin-bottom:18px; font-weight:600; }
.footer-col a{ display:block; font-size:0.9rem; padding:6px 0; transition:color .3s var(--ease); }
.footer-col a:hover{ color:var(--paper); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:0.82rem; flex-wrap:wrap; gap:14px; }
.footer-bottom .legal{ display:flex; gap:20px; }

/* ---------- forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:0.86rem; color:var(--graphite); }
.field input, .field select, .field textarea{
  font-family:var(--body); font-size:1rem; padding:14px 16px; border-radius:10px; border:1px solid var(--line-dark);
  background:transparent; color:var(--ink); transition:border-color .3s var(--ease);
}
.cta-form .field select,
.cta-form select#service,
select#service{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background-color:#1C0F30;
  color-scheme:dark;
}
.cta-form .field select option,
.cta-form select#service option,
select#service option{
  color:#ffffff;
  background-color:#1C0F30;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--violet); }
.field textarea{ resize:vertical; min-height:120px; }
.field.err input, .field.err textarea{ border-color:#D9432E; }
.field-error{ font-size:0.78rem; color:#D9432E; min-height:14px; }
.form-status{ font-size:0.92rem; padding:14px 16px; border-radius:10px; display:none; margin-top:6px; }
.form-status.show{ display:block; }
.form-status.success{ background:#E8F5E9; color:#1B5E20; display:block; }
.form-status.error{ background:#FBEAEA; color:#8B1E12; display:block; }
.btn[disabled]{ opacity:0.6; pointer-events:none; }

/* ---------- contact info ---------- */
.contact-info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:70px; padding-top:50px; border-top:1px solid var(--line-dark); }
.contact-info-item .label{ display:block; margin-bottom:10px; }
.contact-info-item p{ font-size:1.1rem; font-family:var(--display); }

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  background:var(--ink); color:var(--paper); padding:calc(var(--gutter) + 130px) var(--gutter) 80px; overflow:visible;
}
.page-hero .h-display{ max-width:18ch; margin-bottom:18px; }
.page-hero-grid{ display:grid; grid-template-columns:minmax(520px, 1fr) minmax(330px, 0.68fr); gap:30px; align-items:center; max-width:1400px; margin:0 auto; }
.page-hero-copy{ max-width:720px; }
.page-hero-copy .h-display{ max-width:16ch; }
.page-hero-copy .lede{ margin-top:20px; max-width:48ch; }

.page-hero-video-wrap{ position:relative; display:flex; align-items:center; justify-content:center; min-height:420px; }
.page-hero-video-wrap::after{ content:""; position:absolute; inset:-18px; border-radius:30px; background:linear-gradient(135deg, rgba(116,80,255,.45), transparent); filter:blur(30px); opacity:.85; z-index:0; }

.mobile-demo-shell{ position:relative; z-index:1; width:min(290px, 32vw); aspect-ratio:9/16; display:flex; align-items:center; justify-content:center; }
.mobile-demo-shell::before{ content:""; position:absolute; inset:-8px; border-radius:44px; border:1px solid rgba(255,255,255,.38); background:rgba(255,255,255,.03); box-shadow:0 0 0 1px rgba(255,255,255,.04),0 30px 120px rgba(0,0,0,.9); }
.mobile-icon{ position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; border-radius:34px; background:linear-gradient(180deg, #fff, #d7d8dd); border:8px solid var(--ink); box-shadow:0 20px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.9); padding:12px; }
.mobile-icon::before{ content:""; position:absolute; top:0; left:50%; transform:translateX(-50%); width:72px; height:8px; border-radius:0 0 10px 10px; background:var(--ink); }
.mobile-icon-camera{ position:absolute; top:16px; left:50%; width:6px; height:6px; border-radius:50%; background:var(--ink); transform:translateX(-50%); z-index:3; }
.mobile-icon-speaker{ position:absolute; top:30px; left:50%; width:54px; height:4px; border-radius:10px; background:rgba(31,31,31,.75); transform:translateX(-50%); z-index:2; }
.mobile-icon-screen{ display:block; position:relative; overflow:hidden; width:100%; height:100%; border-radius:20px; border:2px solid var(--graphite); background:var(--ink); z-index:1; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.mobile-icon-screen::before{ content:""; position:absolute; inset:0; background:linear-gradient(150deg, rgba(118,76,231,.25), transparent); z-index:2; pointer-events:none; }
.mobile-icon-home{ position:absolute; bottom:12px; left:50%; width:46px; height:4px; border-radius:10px; background:var(--ink); transform:translateX(-50%); opacity:.8; }
.page-hero-video{ display:block; width:100%; height:100%; object-fit:contain; object-position:center center; background:var(--ink); }

@media (max-width: 1024px){
  .page-hero-grid{ grid-template-columns:1fr; }
  .page-hero-video-wrap{ min-height:420px; }
  .mobile-demo-shell{ width:min(300px, 80vw); }
}
@media (max-width: 720px){
  .page-hero-grid{ gap:24px; }
  .mobile-demo-shell{ width:min(280px, 86vw); }
  .page-hero-video-wrap{ min-height:360px; }
}

/* ---------- filters ---------- */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:50px; }
.filter-btn{
  padding:10px 20px; border-radius:100px; border:1px solid var(--line-dark); background:transparent; font-size:0.9rem;
  transition:all .3s var(--ease); color:var(--ink); white-space:nowrap;
}
.filter-btn.active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.filter-btn:hover{ border-color:var(--violet); color:var(--violet); }
.filter-btn.active:hover{ color:var(--paper); border-color:var(--ink); }

/* ---------- staffing page ---------- */
.staffing-intro{ max-width:62ch; margin-bottom:28px; color:var(--graphite); font-size:1.02rem; }
.staffing-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.staffing-card{
  border:1px solid var(--line-dark); border-radius:16px; padding:26px;
  background:#fff; min-height:240px; display:flex; flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.staffing-card:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(28,15,48,.08); border-color:#cfc0e9; }
.staffing-card .industry{
  font-family:var(--mono); font-size:0.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--violet); margin-bottom:12px;
}
.staffing-card h3{ font-size:1.18rem; margin-bottom:10px; line-height:1.25; }
.staffing-card p{ font-size:0.92rem; color:var(--graphite); margin-bottom:14px; }
.staffing-card ul{ margin:auto 0 0; }
.staffing-card li{
  font-size:0.86rem; color:var(--graphite); padding:5px 0 5px 16px; position:relative;
}
.staffing-card li::before{ content:'—'; position:absolute; left:0; color:var(--violet); }
.staffing-card.is-hidden{ display:none; }

/* ---------- careers ---------- */
.role-card{ border-top:1px solid var(--line-dark); padding:26px 0; }
.role-card:last-child{ border-bottom:1px solid var(--line-dark); }
.role-head{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; gap:20px; }
.role-head h3{ font-size:1.3rem; }
.role-meta{ font-size:0.86rem; color:var(--graphite); margin-top:6px; }
.role-body{ max-height:0; overflow:hidden; opacity:0; transition:all .4s var(--ease); }
.role-card.open .role-body{ max-height:400px; opacity:1; margin-top:20px; }
.role-body p{ margin-bottom:12px; color:var(--graphite); font-size:0.94rem; }
.role-body ul{ margin-bottom:16px; }
.role-body li{ font-size:0.9rem; color:var(--graphite); padding:4px 0; padding-left:16px; position:relative; }
.role-body li::before{ content:'—'; position:absolute; left:0; color:var(--graphite-2); }

/* ---------- insights ---------- */
.insight-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.insight-card .label{ display:block; margin-bottom:14px; }
.insight-card h3{ font-size:1.25rem; margin-bottom:10px; }
.insight-card p{ font-size:0.92rem; color:var(--graphite); margin-bottom:16px; }

/* ---------- case study ---------- */
.cs-block{ max-width:720px; margin:0 auto 90px; }
.cs-block h2{ font-size:1.8rem; margin-bottom:20px; }
.cs-block p{ color:var(--graphite); font-size:1.05rem; }
.cs-shots{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:90px; }
.cs-shot{ aspect-ratio:4/3; border-radius:16px; background:linear-gradient(150deg, var(--plum-soft), var(--ink)); overflow:hidden; }
.cs-shot img{ display:block; width:100%; height:100%; object-fit:cover; }
.badge-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.result-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:20px; }
.result-item{ padding:24px; border:1px solid var(--line-dark); border-radius:14px; }
.result-item span{ font-family:var(--mono); font-size:0.8rem; color:var(--violet); }
.next-project{ background:var(--ink); color:var(--paper); padding:80px var(--gutter); text-align:center; }
.next-project a{ font-family:var(--display); font-size:clamp(1.8rem,4vw,3rem); }

/* ---------- responsive ---------- */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ display:none; }
  .nav-links{ display:none; }
  .nav-right .btn-on-dark, .nav-right .btn-ghost{ display:none; }
  .nav-burger{ display:flex; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .showcase{ grid-template-columns:1fr; }
  .ai-caps{ grid-template-columns:repeat(2,1fr); }
  .values-grid{ grid-template-columns:repeat(2,1fr); }
  .tech-groups{ grid-template-columns:repeat(2,1fr); }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ aspect-ratio:4/5; min-height:280px; max-height:520px; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .video-grid{ grid-template-columns:1fr 1fr; }
  .insight-grid{ grid-template-columns:1fr 1fr; }
  .contact-info-grid{ grid-template-columns:1fr; }
  .result-grid{ grid-template-columns:1fr; }
  .cs-shots{ grid-template-columns:1fr; }
  .staffing-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .filter-bar::-webkit-scrollbar{ display:none; }
  .project-card, .project-card.tall{ grid-column:span 3; min-height:360px; }
  .project-card.wide{ grid-column:span 6; min-height:380px; }
  .project-card .content{ padding:24px; }
  .hero{ padding:108px var(--gutter) 48px; min-height:0; }
  .section{ padding:64px var(--gutter); }
  .cta-section{ padding:64px var(--gutter) 56px; }
  .page-hero{ padding:112px var(--gutter) 44px; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-right .btn-on-dark, .nav-right .btn-ghost{ display:none; }
  .nav-burger{ display:flex; }
  .services-grid{ grid-template-columns:1fr; }
  .ai-caps{ grid-template-columns:1fr; }
  .values-grid{ grid-template-columns:1fr; }
  .tech-groups{ grid-template-columns:1fr 1fr; }
  .footer-top{ grid-template-columns:1fr; gap:36px; }
  .form-grid{ grid-template-columns:1fr; }
  .video-grid{ grid-template-columns:1fr; }
  .insight-grid{ grid-template-columns:1fr; }
  .staffing-grid{ grid-template-columns:1fr; gap:14px; }
  .staffing-card{ min-height:0; padding:22px; }
  .staffing-intro{ font-size:0.98rem; margin-bottom:20px; }
  .project-card, .project-card.wide, .project-card.tall{ grid-column:span 6; min-height:300px; }
  .projects-grid{ gap:16px; }
  .project-card .content{ padding:22px; }
  .project-card .desc{ max-width:none; }
  .filter-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    margin-left:calc(var(--gutter) * -1);
    margin-right:calc(var(--gutter) * -1);
    padding:0 var(--gutter) 12px;
    margin-bottom:28px;
  }
  .filter-bar::-webkit-scrollbar{ display:none; }
  .filter-btn{ padding:9px 16px; font-size:0.84rem; }
  .page-hero{ padding:calc(var(--gutter) + 108px) var(--gutter) 56px; }
  .page-hero .h-display{ font-size:clamp(2rem, 8.5vw, 2.55rem); line-height:1.12; }
  .page-hero .lede{ max-width:none; }
  .section{ padding:72px var(--gutter); }
  .timeline-item{ grid-template-columns:50px 1fr; }
  .section-head{ align-items:flex-start; }
  .flow{ flex-direction:column; }
  .flow-arrow{ transform:rotate(90deg); }
  .hero{ padding:92px var(--gutter) 36px; min-height:0; }
  .hero-copy .h-display{ margin:0 0 14px; font-size:clamp(1.9rem, 8vw, 2.4rem); }
  .hero-copy .lede{ margin-bottom:22px; }
  .hero-tagline{ margin-top:22px; }
  .ticker-section{ padding:22px 0; }
  .section{ padding:48px var(--gutter); }
  .section-head{ margin-bottom:28px; }
  .cta-section{ padding:48px var(--gutter) 40px; }
  .page-hero{ padding:100px var(--gutter) 36px; }
  .contact-hero{ padding-bottom:28px; }
}

@media (max-width: 900px){
  #discipline-showcase{
    min-height:0 !important;
    padding:48px var(--gutter);
  }
  #discipline-showcase .discipline-showcase-sticky{
    position:relative;
    min-height:0;
    display:block;
    padding:0;
  }
  #discipline-showcase .wrap{ width:100%; }
  .showcase{ grid-template-columns:1fr; gap:20px; }
  .showcase-item,
  .showcase-item:nth-child(n){
    display:block !important;
    opacity:1 !important;
    transform:none !important;
    padding:16px 0;
  }
  .showcase-item p{ max-height:none; opacity:1; margin-top:6px; }
  .showcase-visual{
    min-height:280px;
    height:auto;
    max-height:340px;
    overflow:hidden;
  }
  .showcase-visual [data-visual],
  .ai-automation-section,
  .mobile-app-section,
  .website-dev-section{
    min-height:280px !important;
    width:100%;
  }
  .ai-automation,
  .website-dev{ height:280px; width:100%; transform:none; }

  #process{
    min-height:0 !important;
    padding:48px var(--gutter);
  }
  #process .process-story-sticky{
    position:relative;
    min-height:0;
    display:block;
    padding:0;
  }
  #process .process-story-sticky .wrap{
    grid-template-columns:1fr;
    gap:20px;
    width:100%;
  }
  #process .timeline{ width:100%; margin-left:0; }
  #process .timeline-item,
  #process .timeline-item.visible{
    opacity:1 !important;
    transform:none !important;
    max-height:none !important;
    padding:18px 0 !important;
    border-top:1px solid var(--line-dark) !important;
    overflow:visible;
    grid-template-columns:48px 1fr;
    gap:14px;
  }

  .tech-ecosystem-section{ padding:48px var(--gutter); overflow:hidden; }
  .tech-ecosystem-map{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:8px;
    min-height:0;
    padding:8px 0 16px;
  }
  .tech-map-grid,
  .tech-connecting-lines{ display:none; }
  .tech-core{
    position:relative;
    left:auto; top:auto;
    transform:none;
    width:100%;
    height:auto;
    border-radius:18px;
    padding:18px 16px;
    margin-bottom:8px;
  }
  .tech-core::before,
  .tech-core::after,
  .core-orbit{ display:none; }
  .tech-node{
    position:relative !important;
    left:auto !important;
    top:auto !important;
  }
  .tech-category-strip{ margin-top:8px; }
}
