/* ================================================================
   SELLERY — PREMIUM OPERATING COMPANY WEBSITE
   Visual system: dark technical luxury, restrained motion, clear UX
   ================================================================ */

:root {
  color-scheme: dark;
  --bg: #050706;
  --bg-elevated: #080b09;
  --bg-soft: #0b0f0c;
  --surface: rgba(13, 18, 15, 0.72);
  --surface-2: rgba(17, 23, 19, 0.82);
  --surface-3: rgba(23, 30, 25, 0.92);
  --surface-solid: #0d120f;
  --text: #f3f6f3;
  --text-soft: #c7cec9;
  --muted: #929d96;
  --muted-2: #68726c;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-faint: rgba(255, 255, 255, 0.045);
  --accent: #8fff54;
  --accent-bright: #b4ff8d;
  --accent-soft: #d8ffca;
  --accent-deep: #47d900;
  --accent-rgb: 143, 255, 84;
  --blue: #7faaff;
  --violet: #a277ff;
  --copper: #d98052;
  --danger: #ff7c72;
  --shadow-xl: 0 48px 120px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.26);
  --header-bg: rgba(7, 10, 8, 0.72);
  --selection: rgba(143, 255, 84, 0.28);
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f5;
  --bg-elevated: #ffffff;
  --bg-soft: #edf1ed;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-3: rgba(249, 252, 249, 0.98);
  --surface-solid: #ffffff;
  --text: #101411;
  --text-soft: #39423c;
  --muted: #647068;
  --muted-2: #8a958e;
  --line: rgba(15, 29, 20, 0.1);
  --line-strong: rgba(15, 29, 20, 0.17);
  --line-faint: rgba(15, 29, 20, 0.05);
  --accent: #49db0e;
  --accent-bright: #65e62f;
  --accent-soft: #15350d;
  --accent-deep: #2eb000;
  --accent-rgb: 73, 219, 14;
  --blue: #4c78e8;
  --violet: #7952d8;
  --copper: #a95734;
  --shadow-xl: 0 42px 100px rgba(28, 45, 34, 0.13);
  --shadow-lg: 0 24px 62px rgba(28, 45, 34, 0.1);
  --shadow-md: 0 14px 36px rgba(28, 45, 34, 0.08);
  --header-bg: rgba(247, 250, 247, 0.78);
  --selection: rgba(73, 219, 14, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 54% -16%, rgba(var(--accent-rgb), 0.07), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open,
body.overlay-open {
  overflow: hidden;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(110px, 10vw, 180px) 0;
}

.micro-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.text-sheen {
  color: transparent;
  background: linear-gradient(108deg, var(--text) 0%, var(--text) 24%, var(--accent-soft) 58%, var(--accent) 94%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .text-sheen {
  background: linear-gradient(108deg, var(--text) 0%, var(--text) 32%, #2b6b1c 68%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ----------------------------------------------------------------
   GLOBAL AMBIENCE
   ---------------------------------------------------------------- */

.page-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

html[data-theme="light"] #starfield {
  opacity: 0.28;
}

.ambient,
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.13;
  will-change: transform;
}

.ambient-a,
.aurora-one {
  width: 55vw;
  height: 38vw;
  top: -18vw;
  right: -12vw;
  background: rgba(var(--accent-rgb), 0.8);
  animation: ambientFloatA 18s ease-in-out infinite alternate;
}

.ambient-b,
.aurora-two {
  width: 44vw;
  height: 42vw;
  top: 42vh;
  left: -26vw;
  background: rgba(82, 125, 255, 0.32);
  animation: ambientFloatB 22s ease-in-out infinite alternate;
}

.ambient-c {
  width: 38vw;
  height: 32vw;
  bottom: -18vw;
  right: 8vw;
  background: rgba(145, 92, 255, 0.23);
  animation: ambientFloatC 24s ease-in-out infinite alternate;
}

html[data-theme="light"] .ambient,
html[data-theme="light"] .aurora {
  opacity: 0.075;
}

.global-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
}

html[data-theme="light"] .global-grid {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(17, 34, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 34, 23, 0.03) 1px, transparent 1px);
}

.grain,
.noise {
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}

html[data-theme="light"] .grain,
html[data-theme="light"] .noise {
  opacity: 0.018;
}

.cursor-aura,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.025) 38%, transparent 72%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.has-pointer .cursor-aura,
body.has-pointer .cursor-glow {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.5);
  pointer-events: none;
}

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 0;
  width: 100%;
  padding-inline: var(--gutter);
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 30px));
  opacity: 0;
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  width: min(100%, 1380px);
  min-height: 72px;
  margin-inline: auto;
  padding: 0 10px 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--header-bg);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  transition: min-height 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 64px;
  background: color-mix(in srgb, var(--header-bg) 94%, transparent);
  border-color: var(--line-strong);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.25);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 48px;
  overflow: hidden;
}

.brand-picture {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-on-light {
  opacity: 0;
  visibility: hidden;
}

html[data-theme="light"] .brand-on-dark {
  opacity: 0;
  visibility: hidden;
}

html[data-theme="light"] .brand-on-light {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.22s ease, background 0.22s ease;
}

.nav-links a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
  background: rgba(15, 29, 20, 0.04);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.theme-icon {
  position: absolute;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-55deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(45deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   BUTTONS & LINKS
   ---------------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.27) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
}

.button:hover::before {
  transform: translateX(130%);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button svg,
.text-link svg,
.footer-cta svg,
.acquisition-panel-footer svg,
.capital-scorecard a svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 0.25s var(--ease);
}

.button:hover svg,
.text-link:hover svg,
.footer-cta a:hover svg,
.acquisition-panel-footer a:hover svg,
.capital-scorecard a:hover svg {
  transform: translateX(3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #6ce923 100%);
  color: #071006;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.16), inset 0 1px rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .button-primary {
  color: #071006;
}

.button-primary:hover {
  box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.24), inset 0 1px rgba(255, 255, 255, 0.45);
}

.button-quiet,
.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .button-quiet,
html[data-theme="light"] .button-secondary {
  background: rgba(255, 255, 255, 0.7);
}

.button-quiet:hover,
.button-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.055);
}

.button-large {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 15px;
  font-size: 14px;
}

.button-small {
  min-height: 44px;
  padding-inline: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-link::after {
  position: absolute;
  content: "";
}

/* ----------------------------------------------------------------
   REVEAL & DEPTH
   ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-depth-card] {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-depth-card].is-depth-active {
  transition: transform 0.08s linear, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  padding-top: clamp(150px, 13vw, 210px);
  padding-bottom: 64px;
}

.hero-radial {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1300px, 100vw);
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 36%, rgba(var(--accent-rgb), 0.1), transparent 28%),
    radial-gradient(circle at 70% 40%, rgba(92, 121, 255, 0.05), transparent 45%);
  transform: translateX(-50%);
  mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: clamp(44px, 5vw, 82px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-index {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.055);
  color: var(--accent);
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 6.4vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 35px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 15px;
}

.hero-meta > div:first-child {
  padding-left: 0;
}

.hero-meta > div + div::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.hero-meta span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-meta strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-meta small {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual-halo {
  position: absolute;
  z-index: -1;
  inset: 8% -6% -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 63%);
  filter: blur(30px);
}

.control-plane {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 17%),
    rgba(7, 11, 8, 0.92);
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255, 255, 255, 0.07);
}

.control-plane::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, rgba(var(--accent-rgb), 0.09), transparent 33%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

html[data-theme="light"] .control-plane {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 17%),
    #0a0f0b;
  color: #f4f7f4;
}

.control-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 51px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.window-dots span:first-child {
  background: rgba(255, 124, 114, 0.68);
}

.window-dots span:nth-child(2) {
  background: rgba(255, 205, 92, 0.62);
}

.window-dots span:nth-child(3) {
  background: rgba(var(--accent-rgb), 0.65);
}

.control-title {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.control-title span {
  color: rgba(255, 255, 255, 0.82);
}

.control-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.control-status i,
.workspace-mode i,
.activity-head i,
.panel-state i,
.malach-account i,
.malach-card-head i,
.form-security i,
.private-pill i,
.portfolio-state i,
.footer-signal span,
.global-overlay-top i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
  animation: livePulse 2.1s ease-in-out infinite;
}

.control-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 599px;
}

.control-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 17px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.013);
}

.rail-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.31);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rail-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.rail-button:hover,
.rail-button.active {
  border-color: rgba(var(--accent-rgb), 0.17);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
}

.rail-spacer {
  flex: 1;
}

.control-workspace {
  min-width: 0;
  padding: 25px 25px 22px;
}

.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.workspace-heading h2 {
  margin: 7px 0 0;
  color: #f4f7f4;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.workspace-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.045);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.operating-graph {
  position: relative;
  min-height: 350px;
}

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.graph-connection {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.graph-pulse {
  fill: none;
  stroke: url(#graphFlow);
  stroke-width: 1.5;
  stroke-dasharray: 22 260;
  stroke-linecap: round;
  animation: graphFlow 5.4s linear infinite;
}

.graph-pulse-b {
  animation-delay: -2.7s;
}

.graph-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 102px;
  height: 102px;
  place-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), rgba(7, 11, 8, 0.95) 63%);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.09), inset 0 0 26px rgba(var(--accent-rgb), 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
}

.graph-core small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.graph-core strong {
  color: #f4f7f4;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.graph-core > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  transform: translate(-50%, 30px);
}

.core-orbit {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(var(--accent-rgb), 0.11);
  border-radius: 50%;
  animation: orbitSpin 9s linear infinite;
}

.core-orbit::before {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.core-orbit-b {
  inset: -30px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.core-orbit-c {
  inset: -48px;
  animation-duration: 20s;
}

.graph-node {
  position: absolute;
  display: grid;
  grid-template-columns: 8px 1fr;
  min-width: 130px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(14, 20, 16, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
  color: #eef3ef;
}

.graph-node > i {
  grid-row: span 2;
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.graph-node span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.graph-node small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
  line-height: 1.35;
}

.graph-node-a {
  top: 43px;
  left: 8px;
}

.graph-node-b {
  top: 37px;
  right: 0;
}

.graph-node-c {
  bottom: 31px;
  left: 0;
}

.graph-node-d {
  right: 0;
  bottom: 31px;
}

.control-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr);
  gap: 12px;
}

.signal-card,
.activity-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.signal-head,
.activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.signal-head strong {
  color: var(--accent);
  font-weight: 500;
}

.signal-chart {
  height: 82px;
}

.signal-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.signal-area {
  fill: rgba(var(--accent-rgb), 0.07);
}

.signal-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.35));
}

.signal-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 7px;
}

.signal-legend span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-legend i {
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.activity-feed {
  display: grid;
  gap: 4px;
}

.activity-row {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.48);
  font-size: 7.5px;
  line-height: 1.35;
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row time {
  color: rgba(var(--accent-rgb), 0.72);
  font-family: var(--font-mono);
}

.hero-visual-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 15px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-visual-caption i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-proof {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 88px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.proof-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.proof-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

/* ----------------------------------------------------------------
   SECTION INTRO
   ---------------------------------------------------------------- */

.section-intro {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  margin-bottom: clamp(58px, 7vw, 96px);
}

.section-index {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-index span {
  color: var(--accent);
}

.section-index i {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-index small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.section-intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
}

.section-intro h2 {
  max-width: 870px;
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 5.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-intro-copy > p {
  max-width: 520px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.012em;
}

/* ----------------------------------------------------------------
   COMPANY BENTO
   ---------------------------------------------------------------- */

.company {
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.015) 52%, transparent);
}

.company-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: 14px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
}

.bento-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.04);
  --lift: -4px;
}

.bento-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
  content: "";
}

.bento-card-lead {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 590px;
  padding: clamp(30px, 4vw, 52px);
  background:
    radial-gradient(circle at 78% 78%, rgba(var(--accent-rgb), 0.11), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 50%),
    var(--surface-2);
}

.bento-card-accent {
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.13), transparent 48%),
    var(--surface);
}

.bento-kicker {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.bento-card-lead h3 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 4vw, 4.7rem);
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.bento-card-lead > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.bento-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
}

.bento-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.bento-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.bento-card:not(.bento-card-lead) h3 {
  margin-bottom: 13px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.bento-card:not(.bento-card-lead) p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.bento-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.architecture-stack {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 55px;
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 38px 130px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.stack-layer::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 20px;
  height: 1px;
  content: "";
  background: var(--accent);
  opacity: 0.45;
}

.stack-layer span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
}

.stack-layer strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.stack-layer small {
  color: var(--muted-2);
  font-size: 10px;
}

.stack-layer-1 {
  width: 84%;
}

.stack-layer-2 {
  width: 92%;
  margin-left: 4%;
}

.stack-layer-3 {
  margin-left: 8%;
}

/* ----------------------------------------------------------------
   PLATFORM
   ---------------------------------------------------------------- */

.platform {
  overflow: hidden;
}

.platform-glow {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 1100px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08), transparent 68%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
}

.section-intro-platform {
  margin-bottom: 70px;
}

.platform-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(26px);
}

.platform-sidebar {
  display: flex;
  flex-direction: column;
  padding: 38px 28px 30px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.07), transparent 30%),
    rgba(255, 255, 255, 0.012);
}

.platform-sidebar-head h3 {
  margin: 15px 0 14px;
  font-size: 37px;
  letter-spacing: -0.05em;
}

.platform-sidebar-head p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.platform-tabs {
  display: grid;
  gap: 7px;
}

.platform-tab {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 8px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.platform-tab::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.platform-tab:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.platform-tab.active {
  border-color: rgba(var(--accent-rgb), 0.13);
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--text);
}

.platform-tab.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.platform-tab > span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.platform-tab.active > span {
  color: var(--accent);
}

.platform-tab > div {
  display: grid;
}

.platform-tab strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.platform-tab small {
  color: var(--muted-2);
  font-size: 9px;
}

.platform-tab > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.platform-tab.active > i {
  background: var(--accent);
  box-shadow: 0 0 11px rgba(var(--accent-rgb), 0.65);
}

.platform-sidebar > .text-link {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.platform-display {
  min-width: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--accent-rgb), 0.06), transparent 28%),
    var(--bg-soft);
}

.display-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 57px;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.display-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.display-brand > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #071006;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.display-brand strong,
.display-breadcrumb,
.display-user {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.display-brand strong {
  color: var(--text-soft);
}

.display-breadcrumb {
  color: var(--muted-2);
}

.display-breadcrumb span {
  color: var(--text-soft);
}

.display-user {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--muted);
}

.display-user i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}

.platform-panel {
  min-height: 663px;
  padding: 35px;
  animation: panelIn 0.55s var(--ease) both;
}

.panel-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.panel-toolbar h4 {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.panel-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.024), transparent 50%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.ui-card-head span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.ui-card-head small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: 13px;
}

.intelligence-chart-card {
  min-width: 0;
}

.intelligence-chart {
  position: relative;
  height: 255px;
  margin: 18px 18px 0;
}

.intelligence-chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid {
  fill: none;
  stroke: var(--line-faint);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.3));
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: chartDraw 2.2s var(--ease) 0.35s forwards;
}

.chart-cursor {
  position: absolute;
  top: 24%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background: rgba(9, 14, 10, 0.86);
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-mono);
  font-size: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .chart-cursor {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
}

.chart-cursor i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px 15px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.signal-sources-card {
  min-width: 0;
}

.source-list {
  display: grid;
  padding: 9px 15px 15px;
}

.source-list > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 57px;
  border-bottom: 1px solid var(--line);
}

.source-list > div:last-child {
  border-bottom: 0;
}

.source-list span {
  color: var(--text-soft);
  font-size: 10px;
}

.source-list strong {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  text-transform: uppercase;
}

.source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 0 0 9px currentColor;
}

.source-dot-green {
  color: var(--accent);
  background: var(--accent);
}

.source-dot-blue {
  color: var(--blue);
  background: var(--blue);
}

.source-dot-violet {
  color: var(--violet);
  background: var(--violet);
}

.source-dot-silver {
  color: #ccd4ce;
  background: #ccd4ce;
}

.decision-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 85px;
  padding: 15px;
}

.decision-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.13);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.055);
  color: var(--accent);
}

.decision-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.decision-card > div:nth-child(2) {
  display: grid;
}

.decision-card span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.decision-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mini-button:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
}

.automation-canvas {
  position: relative;
  min-height: 475px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px),
    rgba(255, 255, 255, 0.012);
  background-size: 30px 30px;
}

.automation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.automation-lines path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.automation-lines .automation-flow {
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-dasharray: 28 280;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.4));
  animation: graphFlow 4s linear infinite;
}

.workflow-node {
  position: absolute;
  display: grid;
  width: 180px;
  min-height: 98px;
  align-content: center;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.025);
}

.workflow-node::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
  transform: translateY(-50%);
}

.workflow-node > span {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.workflow-node strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.workflow-node small {
  color: var(--muted-2);
  font-size: 8px;
}

.workflow-trigger {
  top: 50%;
  left: 3.5%;
  transform: translateY(-50%);
}

.workflow-router {
  top: 50%;
  left: 29%;
  transform: translateY(-50%);
}

.workflow-action {
  top: 50%;
  left: 57%;
  transform: translateY(-50%);
}

.workflow-result {
  top: 50%;
  right: 2.5%;
  width: 155px;
  transform: translateY(-50%);
}

.workflow-result::after {
  display: none;
}

.workflow-mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-solid);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.workflow-mini i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.workflow-mini-a {
  top: 60px;
  left: 32%;
}

.workflow-mini-b {
  bottom: 62px;
  left: 32%;
}

.workflow-mini-c {
  top: 60px;
  left: 60%;
}

.workflow-mini-d {
  right: 15%;
  bottom: 62px;
}

.commerce-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  grid-template-rows: minmax(400px, 1fr) auto;
  gap: 13px;
}

.commerce-summary {
  padding-bottom: 20px;
}

.summary-value {
  display: grid;
  padding: 24px 18px 18px;
}

.summary-value small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.summary-value strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.summary-bars {
  display: grid;
  gap: 17px;
  padding: 0 18px;
}

.summary-bars > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
}

.summary-bars span {
  color: var(--muted);
  font-size: 9px;
}

.summary-bars i,
.capital-scorecard > div i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.summary-bars b,
.capital-scorecard > div b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.35);
  animation: barGrow 1.4s var(--ease) both;
}

.commerce-table-card {
  min-width: 0;
}

.commerce-table {
  padding: 8px 15px 15px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.65fr;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 600;
}

.table-head {
  min-height: 37px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.table-head > span:first-child {
  color: var(--muted-2);
  font-weight: 400;
}

.table-row strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  text-transform: uppercase;
}

.table-icon {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.table-icon-green {
  background: var(--accent);
}

.table-icon-blue {
  background: var(--blue);
}

.table-icon-violet {
  background: var(--violet);
}

.table-icon-silver {
  background: #c4cdc7;
}

.commerce-alert {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 15px;
}

.alert-pulse {
  position: relative;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.045);
}

.alert-pulse::before,
.alert-pulse::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.alert-pulse::before {
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}

.alert-pulse::after {
  width: 28px;
  height: 28px;
  animation: radarPulse 2s ease-out infinite;
}

.commerce-alert > div {
  display: grid;
}

.commerce-alert small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.commerce-alert strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.capital-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 13px;
}

.capital-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-height: 470px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.012);
}

.pipeline-column {
  padding: 11px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.pipeline-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
}

.pipeline-head i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  font-style: normal;
}

.deal-card {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-solid);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.deal-card-active {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.035);
}

.deal-card small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.deal-card strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.deal-card span {
  color: var(--muted-2);
  font-size: 8px;
}

.capital-scorecard {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.capital-scorecard > div {
  display: grid;
  gap: 7px;
}

.capital-scorecard > div span {
  color: var(--muted);
  font-size: 9px;
}

.capital-scorecard a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   PORTFOLIO + MALACH
   ---------------------------------------------------------------- */

.portfolio {
  background: linear-gradient(180deg, transparent, rgba(137, 99, 255, 0.015) 52%, transparent);
}

.malach-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(370px, 0.8fr) minmax(560px, 1.2fr);
  gap: clamp(36px, 5vw, 70px);
  min-height: 720px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 25%, rgba(142, 91, 255, 0.14), transparent 27%),
    radial-gradient(circle at 16% 95%, rgba(220, 119, 68, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(8, 10, 11, 0.94);
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255, 255, 255, 0.05);
  color: #f5f5f6;
}

.malach-feature::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, black 55%, black);
}

.malach-copy,
.malach-product {
  position: relative;
  z-index: 1;
}

.malach-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portfolio-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 35px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-state span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.52);
}

.portfolio-state strong {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.malach-wordmark {
  display: block;
  width: min(100%, 410px);
  height: 156px;
  margin-bottom: 9px;
  overflow: hidden;
}

.malach-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.malach-title-lockup h3 {
  margin-bottom: 17px;
  font-size: clamp(2.7rem, 4.6vw, 5.2rem);
  letter-spacing: -0.06em;
}

.malach-title-lockup p {
  max-width: 600px;
  margin-bottom: 29px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.8;
}

.malach-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 34px;
}

.malach-capabilities span {
  position: relative;
  padding: 11px 12px 11px 26px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.malach-capabilities span::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #a56fff;
  box-shadow: 0 0 9px #a56fff;
  transform: translateY(-50%);
}

.malach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.malach-product {
  display: flex;
  align-items: center;
  min-width: 0;
  perspective: 1600px;
}

.malach-product-glow {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 87, 255, 0.18), transparent 66%);
  filter: blur(35px);
}

.malach-app {
  position: relative;
  width: 108%;
  min-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #090a0d;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-5deg) rotateX(2deg) translateX(2%);
}

.malach-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 49px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.017);
}

.malach-app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.malach-app-brand picture {
  width: 24px;
  height: 24px;
}

.malach-app-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.malach-account {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 7px;
}

.malach-account i,
.malach-card-head i {
  background: #a56fff;
  box-shadow: 0 0 12px rgba(165, 111, 255, 0.75);
}

.malach-appbody {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 510px;
}

.malach-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
}

.malach-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
  font-size: 7px;
  text-align: left;
  cursor: pointer;
}

.malach-nav button.active,
.malach-nav button:hover {
  border-color: rgba(165, 111, 255, 0.14);
  background: rgba(165, 111, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.malach-nav svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.malach-workspace {
  min-width: 0;
  padding: 20px;
}

.malach-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.malach-workspace-head > div:first-child {
  display: grid;
}

.malach-workspace-head small {
  color: rgba(165, 111, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.malach-workspace-head strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.autonomy-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-mono);
  font-size: 6px;
}

.autonomy-toggle > i {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(165, 111, 255, 0.22);
}

.autonomy-toggle b {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b88bff;
  box-shadow: 0 0 8px rgba(165, 111, 255, 0.7);
}

.malach-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.malach-metrics > div {
  display: grid;
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.malach-metrics span {
  color: rgba(255, 255, 255, 0.32);
  font-size: 7px;
}

.malach-metrics strong {
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.malach-metrics small {
  align-self: end;
  color: rgba(165, 111, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 6px;
}

.malach-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(175px, 0.75fr);
  gap: 8px;
}

.malach-chart-card,
.malach-feed-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.malach-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
}

.malach-card-head small {
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 6px;
}

.malach-chart {
  height: 150px;
  margin: 10px 11px 0;
}

.malach-chart svg {
  width: 100%;
  height: 100%;
}

.malach-grid-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 1;
}

.malach-line {
  fill: none;
  stroke: #a56fff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(165, 111, 255, 0.4));
}

.malach-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 5px 11px 10px;
  color: rgba(255, 255, 255, 0.19);
  font-family: var(--font-mono);
  font-size: 5.5px;
  text-transform: uppercase;
}

.agent-feed {
  display: grid;
  padding: 5px 10px 9px;
}

.agent-feed > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 5px 7px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 6.5px;
  line-height: 1.3;
}

.agent-feed > div:last-child {
  border-bottom: 0;
}

.agent-feed time {
  color: rgba(165, 111, 255, 0.7);
  font-family: var(--font-mono);
}

.agent-feed span {
  color: rgba(255, 255, 255, 0.48);
}

.agent-feed strong {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-weight: 400;
  text-transform: uppercase;
}

.malach-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  margin-top: 9px;
  padding: 0 11px;
  border: 1px solid rgba(165, 111, 255, 0.12);
  border-radius: 10px;
  background: rgba(165, 111, 255, 0.04);
}

.malach-commandbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 6.5px;
}

.malach-commandbar > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a56fff;
  box-shadow: 0 0 10px #a56fff;
  animation: livePulse 2s ease-in-out infinite;
}

.malach-commandbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(165, 111, 255, 0.18);
  border-radius: 8px;
  background: rgba(165, 111, 255, 0.09);
  color: rgba(255, 255, 255, 0.64);
  font-size: 6.5px;
  cursor: pointer;
}

.malach-commandbar svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.04), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 48%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.portfolio-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.04);
  --lift: -4px;
}

.portfolio-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(480px, 1.28fr);
  gap: 30px;
  min-height: 510px;
  padding: 0;
}

.portfolio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-card-head i {
  color: var(--accent);
  font-style: normal;
}

.portfolio-card-wide > .portfolio-card-head {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 30px;
  left: 30px;
}

.portfolio-card-copy {
  display: flex;
  flex-direction: column;
  padding: 89px 0 38px 38px;
}

.portfolio-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.portfolio-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.portfolio-icon-green,
.portfolio-icon-mint {
  color: var(--accent);
}

.portfolio-icon-blue {
  color: var(--blue);
}

.portfolio-icon-violet {
  color: var(--violet);
}

.portfolio-icon-silver {
  color: var(--text-soft);
}

.portfolio-card h3 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  letter-spacing: -0.05em;
}

.portfolio-card p {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.portfolio-card .text-link {
  margin-top: auto;
}

.commerce-os-art {
  position: relative;
  align-self: end;
  min-width: 0;
  height: 415px;
  margin: 82px 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--bg-soft);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
}

.os-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.7);
}

.os-grid {
  display: grid;
  grid-template-columns: 53px 1fr;
  height: calc(100% - 43px);
}

.os-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-right: 1px solid var(--line);
}

.os-sidebar i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--line);
}

.os-sidebar i:first-child {
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.17);
}

.os-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 92px 1fr;
  gap: 10px;
  padding: 15px;
}

.os-metric,
.os-chart {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.016);
}

.os-metric {
  display: grid;
  padding: 12px;
}

.os-metric span {
  color: var(--muted-2);
  font-size: 7px;
}

.os-metric strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.os-metric > i {
  align-self: end;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
}

.os-metric b {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.os-chart {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
}

.os-chart > span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-faint);
}

.os-chart > span:nth-child(1) {
  top: 20%;
}

.os-chart > span:nth-child(2) {
  top: 40%;
}

.os-chart > span:nth-child(3) {
  top: 60%;
}

.os-chart > span:nth-child(4) {
  top: 80%;
}

.os-chart svg {
  position: absolute;
  right: 12px;
  bottom: 15px;
  left: 12px;
  width: calc(100% - 24px);
  height: 70%;
}

.os-chart path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.3));
}

.portfolio-card-visual {
  position: absolute;
  pointer-events: none;
}

.commerce-orbits {
  right: -45px;
  bottom: -60px;
  width: 270px;
  height: 270px;
}

.commerce-orbits span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(127, 170, 255, 0.13);
  border-radius: 50%;
  animation: orbitSpin 16s linear infinite;
}

.commerce-orbits span:nth-child(2) {
  inset: 30px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.commerce-orbits span:nth-child(3) {
  inset: 66px;
  animation-duration: 9s;
}

.commerce-orbits i {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

.code-stack {
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 7px;
  width: 230px;
}

.code-stack span {
  display: block;
  padding: 9px 12px;
  border: 1px solid rgba(162, 119, 255, 0.12);
  border-radius: 9px;
  background: rgba(162, 119, 255, 0.04);
  color: rgba(162, 119, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 8px;
  transform: translateX(var(--x, 0));
}

.code-stack span:nth-child(1) {
  --x: 28px;
}

.code-stack span:nth-child(2) {
  --x: 12px;
}

.code-stack i {
  position: absolute;
  inset: -25px;
  z-index: -1;
  background: radial-gradient(circle, rgba(162, 119, 255, 0.12), transparent 68%);
  filter: blur(15px);
}

.acquisition-radar {
  right: -35px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.acquisition-radar span {
  position: absolute;
  inset: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.acquisition-radar span:nth-child(2) {
  inset: 65px;
}

.acquisition-radar span:nth-child(3) {
  inset: 105px;
}

.acquisition-radar::before,
.acquisition-radar::after {
  position: absolute;
  content: "";
  background: var(--line);
}

.acquisition-radar::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.acquisition-radar::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.acquisition-radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  animation: radarSweep 4s linear infinite;
}

.acquisition-radar b {
  position: absolute;
  top: 29%;
  left: 64%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.signal-wave {
  right: 22px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 90px;
}

.signal-wave i {
  width: 4px;
  height: var(--h, 30%);
  border-radius: 99px;
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.12), var(--accent));
  animation: signalBars 1.8s ease-in-out infinite alternate;
}

.signal-wave i:nth-child(1) { --h: 28%; animation-delay: -.2s; }
.signal-wave i:nth-child(2) { --h: 62%; animation-delay: -.6s; }
.signal-wave i:nth-child(3) { --h: 40%; animation-delay: -.9s; }
.signal-wave i:nth-child(4) { --h: 82%; animation-delay: -.4s; }
.signal-wave i:nth-child(5) { --h: 53%; animation-delay: -1.1s; }
.signal-wave i:nth-child(6) { --h: 92%; animation-delay: -.7s; }
.signal-wave i:nth-child(7) { --h: 44%; animation-delay: -.3s; }
.signal-wave i:nth-child(8) { --h: 68%; animation-delay: -1.2s; }

/* ----------------------------------------------------------------
   OWNERSHIP MODEL
   ---------------------------------------------------------------- */

.model-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(500px, 1.15fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  padding: clamp(40px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 5% 100%, rgba(var(--accent-rgb), 0.07), transparent 34%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.model-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.model-copy > p {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.model-steps {
  position: relative;
  display: grid;
}

.model-steps::before {
  position: absolute;
  top: 37px;
  bottom: 37px;
  left: 28px;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.model-step {
  position: relative;
  display: grid;
  grid-template-columns: 57px 1fr 10px;
  align-items: center;
  gap: 18px;
  min-height: 105px;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
}

.model-step:last-child {
  border-bottom: 0;
}

.model-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.model-step.active > span,
.model-step:hover > span {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.08);
}

.model-step > div {
  display: grid;
  gap: 4px;
}

.model-step strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.model-step small {
  color: var(--muted);
  font-size: 11px;
}

.model-step > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.model-step.active > i,
.model-step:hover > i {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}

/* ----------------------------------------------------------------
   SERVICES
   ---------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 48%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.04);
  --lift: -4px;
}

.service-card::before {
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
  content: "";
}

.service-index {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 15px;
  background: rgba(var(--accent-rgb), 0.045);
  color: var(--accent);
}

.service-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.service-card h3 {
  margin-bottom: 17px;
  font-size: 35px;
  letter-spacing: -0.045em;
}

.service-card > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.service-card ul {
  display: grid;
  gap: 0;
  margin-bottom: 30px;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 11px 0 11px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11px;
}

.service-card li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  transform: translateY(-50%);
}

.service-card .text-link {
  margin-top: auto;
}

/* ----------------------------------------------------------------
   ACQUISITIONS
   ---------------------------------------------------------------- */

.acquisitions {
  overflow: hidden;
}

.acquisition-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(44px, 6vw, 90px);
  overflow: hidden;
  padding: clamp(42px, 6vw, 78px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0 100%, rgba(var(--accent-rgb), 0.12), transparent 32%),
    radial-gradient(circle at 100% 0, rgba(92, 132, 255, 0.065), transparent 30%),
    var(--surface-2);
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255, 255, 255, 0.04);
}

.acquisition-orbit {
  position: absolute;
  bottom: -290px;
  left: -220px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
}

.acquisition-orbit span {
  position: absolute;
  inset: 70px;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
}

.acquisition-orbit span:nth-child(2) {
  inset: 150px;
}

.acquisition-orbit span:nth-child(3) {
  inset: 230px;
}

.acquisition-orbit i {
  position: absolute;
  top: 22%;
  right: 16%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.acquisition-copy,
.acquisition-panel {
  position: relative;
  z-index: 1;
}

.acquisition-copy h2 {
  max-width: 670px;
  margin-bottom: 12px;
  font-size: clamp(3.5rem, 5.5vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.acquisition-lede {
  margin-bottom: 20px;
  color: var(--accent-soft) !important;
  font-family: var(--font-display);
  font-size: 22px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em;
}

.acquisition-copy > p:not(.acquisition-lede) {
  max-width: 650px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.acquisition-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 34px;
}

.acquisition-principles span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 10px;
}

.acquisition-principles i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.6);
}

.acquisition-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.acquisition-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.acquisition-panel-head h3 {
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.private-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.13);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.criteria-list {
  display: grid;
}

.criteria-list > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.criteria-list > div > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
}

.criteria-list > div > div {
  display: grid;
  gap: 5px;
}

.criteria-list strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.criteria-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.acquisition-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  color: var(--muted-2);
  font-size: 9px;
}

.acquisition-panel-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   GLOBAL NETWORK
   ---------------------------------------------------------------- */

.global-section {
  overflow: hidden;
}

.global-layout {
  display: grid;
  grid-template-columns: minmax(370px, 0.75fr) minmax(600px, 1.25fr);
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}

.global-copy h2 {
  margin: 26px 0 22px;
  font-size: clamp(3.5rem, 5.6vw, 6.3rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.global-copy > p {
  max-width: 610px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.global-principles {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.global-principles > div {
  display: grid;
  grid-template-columns: 34px 140px 1fr;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.global-principles span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
}

.global-principles strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.global-principles small {
  color: var(--muted-2);
  font-size: 9px;
}

.global-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.08), transparent 36%),
    rgba(255, 255, 255, 0.014);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.025);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.global-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.global-overlay-top {
  position: absolute;
  top: 20px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.global-overlay-top i {
  flex: 1;
  height: 1px;
  border-radius: 0;
  background: var(--line);
  box-shadow: none;
  animation: none;
}

.global-overlay-top strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
}

.global-coordinate {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.global-coordinate i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.65);
}

.global-coordinate-a {
  top: 24%;
  left: 15%;
}

.global-coordinate-b {
  top: 34%;
  right: 14%;
}

.global-coordinate-c {
  right: 21%;
  bottom: 24%;
}

.global-coordinate-d {
  bottom: 31%;
  left: 12%;
}

.global-data {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  grid-template-columns: auto 1fr 1px auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-solid) 75%, transparent);
  backdrop-filter: blur(16px);
}

.global-data span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.global-data strong {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.global-data i {
  height: 22px;
  background: var(--line);
}

/* ----------------------------------------------------------------
   CONTACT
   ---------------------------------------------------------------- */

.contact {
  padding-bottom: 100px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(370px, 0.75fr) minmax(560px, 1.25fr);
  gap: clamp(45px, 7vw, 100px);
  padding: clamp(38px, 6vw, 78px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.08), transparent 28%),
    var(--surface-2);
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255, 255, 255, 0.035);
}

.contact-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(3.7rem, 5.5vw, 6.2rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.contact-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.contact-paths {
  display: grid;
  gap: 6px;
  margin: 36px 0;
}

.contact-paths button {
  display: grid;
  grid-template-columns: 35px 1fr 7px;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease);
}

.contact-paths button:hover,
.contact-paths button.active {
  border-color: rgba(var(--accent-rgb), 0.13);
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--text);
  transform: translateX(4px);
}

.contact-paths button > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
}

.contact-paths button > div {
  display: grid;
}

.contact-paths strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.contact-paths small {
  color: var(--muted-2);
  font-size: 9px;
}

.contact-paths button > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.contact-paths button:hover > i,
.contact-paths button.active > i {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
}

.contact-direct {
  display: grid;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-direct > span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct a {
  width: fit-content;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-direct small {
  max-width: 500px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.contact-form {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-security {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  min-width: 0;
}

.field-full {
  margin-bottom: 12px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
}

.field label em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.78);
}

.field input,
.field select {
  height: 49px;
  padding: 0 14px;
}

.field textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.025);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.055);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(255, 124, 114, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 124, 114, 0.05);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  pointer-events: none;
  transform: translateY(-50%);
}

.field-error {
  min-height: 15px;
  padding-top: 4px;
  color: var(--danger);
  font-size: 8px;
  line-height: 1.35;
}

.textarea-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  cursor: pointer;
}

.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: #071006;
  pointer-events: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checkmark svg {
  width: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.25s var(--ease);
}

.consent input:checked + .checkmark {
  border-color: var(--accent);
  background: var(--accent);
}

.consent input:checked + .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.consent a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.consent-error {
  display: block;
  margin-bottom: 10px;
}

.button-submit {
  width: 100%;
  min-height: 53px;
}

.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(7, 16, 6, 0.22);
  border-top-color: #071006;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.button-submit.is-loading .submit-spinner {
  display: block;
}

.button-submit.is-loading .submit-arrow {
  display: none;
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.form-status.is-error {
  color: var(--danger);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 55px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-statement {
  display: grid;
  gap: 15px;
}

.footer-logo {
  width: 168px;
}

.footer-statement p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-cta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.footer-cta > span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column > span {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.footer-bottom p {
  margin: 0;
}

.footer-signal {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------------------------------
   PORTFOLIO DIALOG, TOAST, SUCCESS
   ---------------------------------------------------------------- */

.project-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0);
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.76);
  backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease both;
}

.dialog-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 40px), 720px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.09), transparent 32%),
    var(--surface-solid);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
  animation: dialogIn 0.45s var(--ease) both;
}

.dialog-visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 65%);
}

.dialog-visual span,
.dialog-visual i,
.dialog-visual b {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
}

.dialog-visual span {
  inset: 13px;
}

.dialog-visual i {
  inset: 28px;
}

.dialog-visual b {
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  transform: translate(-50%, -50%);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: rotate(4deg);
}

.dialog-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.dialog-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dialog-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.97;
}

.dialog-lede {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.dialog-details {
  display: grid;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
}

.dialog-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-detail span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.dialog-detail p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.demo-toast {
  position: fixed;
  z-index: 1800;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: min(calc(100% - 40px), 390px);
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: toastIn 0.45s var(--ease) both;
}

.demo-toast-icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.17);
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.05);
}

.demo-toast-icon i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px rgba(var(--accent-rgb), 0.75);
}

.demo-toast > div {
  display: grid;
}

.demo-toast strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.demo-toast small {
  color: var(--muted);
  font-size: 9px;
}

.demo-toast button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.demo-toast button:hover {
  background: var(--line-faint);
  color: var(--text);
}

.demo-toast svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.success-overlay {
  position: fixed;
  z-index: 1900;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(2, 4, 3, 0.82);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.3s ease both;
}

.success-card {
  position: relative;
  width: min(100%, 540px);
  overflow: hidden;
  padding: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(var(--accent-rgb), 0.12), transparent 40%),
    var(--surface-solid);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.54);
  text-align: center;
  animation: cardIn 0.5s var(--ease) both;
}

.success-rings {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  transform: translateX(-50%);
}

.success-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
}

.success-rings span:nth-child(2) {
  inset: 60px;
}

.success-rings span:nth-child(3) {
  inset: 120px;
}

.success-icon {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.1);
}

.success-icon svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.success-card h2 {
  margin: 13px 0 14px;
  font-size: 46px;
  letter-spacing: -0.055em;
}

.success-card > p {
  color: var(--muted);
  font-size: 13px;
}

.success-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.success-reference span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.success-reference strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

/* ----------------------------------------------------------------
   LEGAL & 404
   ---------------------------------------------------------------- */

.legal-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 160px);
  padding: 165px 0 100px;
}

.legal-shell {
  max-width: 860px;
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.025);
}

.legal-shell .eyebrow {
  color: var(--accent);
}

.legal-shell h1 {
  margin-bottom: 14px;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  letter-spacing: -0.065em;
}

.legal-meta {
  margin-bottom: 35px !important;
  color: var(--muted-2) !important;
  font-family: var(--font-mono);
  font-size: 9px !important;
  text-transform: uppercase;
}

.legal-shell h2 {
  margin: 42px 0 13px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.legal-shell a:not(.button) {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------- */

@keyframes ambientFloatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7vw, 5vw, 0) scale(1.13); }
}

@keyframes ambientFloatB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9vw, -5vw, 0) scale(1.08); }
}

@keyframes ambientFloatC {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, -3vw, 0) scale(1.1); }
}

@keyframes grainShift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(2%, -3%, 0); }
  40% { transform: translate3d(-3%, 2%, 0); }
  60% { transform: translate3d(3%, 3%, 0); }
  80% { transform: translate3d(-2%, -2%, 0); }
}

@keyframes livePulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes graphFlow {
  to { stroke-dashoffset: -302; }
}

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

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

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

@keyframes barGrow {
  from { width: 0; }
}

@keyframes radarPulse {
  from { opacity: 0.8; transform: translate(-50%, -50%) scale(0.45); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

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

@keyframes signalBars {
  from { transform: scaleY(0.65); opacity: 0.55; }
  to { transform: scaleY(1.08); opacity: 1; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

@media (max-width: 1260px) {
  .nav-shell {
    grid-template-columns: 165px 1fr auto;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 6vw, 5.6rem);
  }

  .control-plane {
    min-height: 615px;
  }

  .control-body {
    min-height: 564px;
  }

  .control-workspace {
    padding-inline: 19px;
  }

  .graph-node {
    min-width: 118px;
  }

  .malach-feature {
    grid-template-columns: minmax(330px, 0.8fr) minmax(510px, 1.2fr);
  }

  .malach-app {
    min-width: 580px;
  }

  .global-layout,
  .contact-shell {
    grid-template-columns: minmax(340px, 0.8fr) minmax(520px, 1.2fr);
  }
}

@media (max-width: 1100px) {
  .site-header {
    top: 14px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto auto;
    min-height: 64px;
    padding-left: 18px;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .nav-actions {
    order: 3;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-solid) 98%, transparent);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(28px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.35s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    padding: 13px 14px;
    font-size: 14px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding-top: 145px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero h1 {
    max-width: 800px;
    font-size: clamp(4rem, 9.5vw, 6.8rem);
  }

  .hero-visual {
    width: min(100%, 850px);
    margin-inline: auto;
  }

  .hero-proof {
    margin-top: 70px;
  }

  .section-intro {
    grid-template-columns: 150px 1fr;
    gap: 38px;
  }

  .section-intro-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-intro-copy > p {
    max-width: 700px;
  }

  .company-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card-lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .platform-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .platform-sidebar {
    padding-inline: 21px;
  }

  .platform-panel {
    padding: 27px;
  }

  .intelligence-grid,
  .commerce-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .decision-card,
  .commerce-alert {
    grid-column: 1;
  }

  .capital-layout {
    grid-template-columns: 1fr;
  }

  .capital-scorecard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capital-scorecard > .micro-label,
  .capital-scorecard > a {
    grid-column: 1 / -1;
  }

  .malach-feature {
    grid-template-columns: 1fr;
  }

  .malach-copy {
    max-width: 800px;
  }

  .malach-product {
    justify-content: center;
  }

  .malach-app {
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .portfolio-card-wide {
    grid-template-columns: 1fr;
    min-height: 790px;
  }

  .portfolio-card-copy {
    padding-right: 38px;
  }

  .commerce-os-art {
    height: 430px;
    margin: 0 30px;
  }

  .model-shell,
  .acquisition-shell,
  .global-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .global-copy,
  .contact-copy,
  .acquisition-copy {
    max-width: 820px;
  }

  .global-visual {
    min-height: 680px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 420px;
  }
}

@media (max-width: 800px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 95px 0;
  }

  .site-header {
    padding-inline: 12px;
  }

  .nav-shell {
    border-radius: 17px;
  }

  .brand {
    width: 132px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 13.5vw, 5.4rem);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .hero-meta > div:nth-child(3) {
    padding-left: 0;
  }

  .hero-meta > div:nth-child(3)::before {
    display: none;
  }

  .control-plane {
    min-height: 560px;
    border-radius: 20px;
  }

  .control-topbar {
    grid-template-columns: 1fr auto;
  }

  .control-title {
    display: none;
  }

  .control-body {
    grid-template-columns: 45px minmax(0, 1fr);
    min-height: 509px;
  }

  .control-rail {
    padding-inline: 5px;
  }

  .rail-button {
    width: 32px;
    height: 32px;
  }

  .control-workspace {
    padding: 19px 14px;
  }

  .workspace-heading h2 {
    font-size: 21px;
  }

  .workspace-mode {
    display: none;
  }

  .operating-graph {
    min-height: 300px;
  }

  .graph-lines {
    opacity: 0.75;
  }

  .graph-core {
    width: 82px;
    height: 82px;
  }

  .graph-core strong {
    font-size: 15px;
  }

  .graph-node {
    min-width: 92px;
    padding: 8px;
  }

  .graph-node span {
    font-size: 8px;
  }

  .graph-node small {
    font-size: 6px;
  }

  .graph-node-a {
    top: 42px;
  }

  .graph-node-b {
    top: 36px;
  }

  .control-lower {
    grid-template-columns: 1fr;
  }

  .activity-card {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 54px;
  }

  .proof-line {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-index {
    max-width: 180px;
  }

  .section-intro h2 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .company-bento {
    grid-template-columns: 1fr;
  }

  .bento-card-lead {
    min-height: 570px;
  }

  .bento-card {
    min-height: 280px;
  }

  .stack-layer {
    grid-template-columns: 30px 95px 1fr;
    padding-inline: 12px;
  }

  .stack-layer small {
    font-size: 8px;
  }

  .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-sidebar > .text-link {
    margin-top: 25px;
  }

  .platform-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-tab {
    grid-template-columns: 25px 1fr;
  }

  .platform-tab > i {
    display: none;
  }

  .display-topbar {
    grid-template-columns: 1fr auto;
  }

  .display-breadcrumb {
    display: none;
  }

  .platform-panel {
    min-height: auto;
    padding: 22px 16px 26px;
  }

  .panel-toolbar {
    display: grid;
  }

  .panel-state {
    width: fit-content;
  }

  .intelligence-chart {
    height: 220px;
  }

  .automation-canvas {
    min-height: 660px;
  }

  .automation-lines {
    display: none;
  }

  .workflow-node {
    left: 50% !important;
    right: auto !important;
    width: min(calc(100% - 40px), 300px);
    transform: translateX(-50%) !important;
  }

  .workflow-trigger { top: 32px; }
  .workflow-router { top: 180px; }
  .workflow-action { top: 328px; }
  .workflow-result { top: 476px; }

  .workflow-node::after {
    top: auto;
    right: auto;
    bottom: -27px;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%);
  }

  .workflow-node:not(.workflow-result)::before {
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 1px;
    height: 22px;
    content: "";
    background: var(--line-strong);
  }

  .workflow-mini {
    display: none;
  }

  .capital-pipeline {
    grid-template-columns: 1fr;
  }

  .capital-scorecard {
    grid-template-columns: 1fr;
  }

  .capital-scorecard > .micro-label,
  .capital-scorecard > a {
    grid-column: 1;
  }

  .malach-feature {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 25px;
  }

  .malach-wordmark {
    height: 120px;
  }

  .malach-title-lockup h3 {
    font-size: clamp(2.65rem, 11vw, 4.5rem);
  }

  .malach-product {
    overflow: hidden;
  }

  .malach-app {
    min-width: 700px;
    transform: scale(0.78);
    transform-origin: top left;
  }

  .malach-product {
    height: 445px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-wide {
    grid-column: 1;
    min-height: 730px;
  }

  .portfolio-card {
    min-height: 410px;
  }

  .portfolio-card-copy {
    padding: 86px 28px 20px;
  }

  .commerce-os-art {
    height: 380px;
    margin: 0 18px;
  }

  .model-shell,
  .acquisition-shell,
  .contact-shell {
    padding: 32px 22px;
    border-radius: 25px;
  }

  .model-copy h2,
  .acquisition-copy h2,
  .global-copy h2,
  .contact-copy h2 {
    font-size: clamp(3.2rem, 13vw, 5.3rem);
  }

  .model-step {
    grid-template-columns: 50px 1fr;
  }

  .model-step > span {
    width: 50px;
    height: 50px;
  }

  .model-step > i {
    display: none;
  }

  .model-steps::before {
    left: 25px;
  }

  .services-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 440px;
    padding: 26px;
  }

  .acquisition-principles {
    grid-template-columns: 1fr;
  }

  .acquisition-panel {
    padding: 22px;
  }

  .acquisition-panel-head {
    display: grid;
  }

  .private-pill {
    width: fit-content;
  }

  .acquisition-panel-footer {
    display: grid;
  }

  .global-visual {
    min-height: 520px;
  }

  .global-principles > div {
    grid-template-columns: 30px 120px 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    justify-items: start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .button-large {
    min-height: 53px;
    padding-inline: 19px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta small {
    display: none;
  }

  .control-plane {
    min-height: 500px;
  }

  .control-body {
    min-height: 449px;
  }

  .control-rail {
    display: none;
  }

  .control-body {
    grid-template-columns: 1fr;
  }

  .control-workspace {
    padding-inline: 12px;
  }

  .workspace-heading .micro-label {
    font-size: 7px;
  }

  .operating-graph {
    min-height: 260px;
  }

  .graph-core {
    width: 72px;
    height: 72px;
  }

  .core-orbit-c {
    display: none;
  }

  .graph-node {
    min-width: 82px;
  }

  .graph-node small {
    display: none;
  }

  .hero-visual-caption {
    font-size: 6.5px;
  }

  .proof-line {
    gap: 10px;
    font-size: 10px;
  }

  .bento-card-lead {
    min-height: 520px;
  }

  .bento-card-lead h3 {
    font-size: 2.6rem;
  }

  .stack-layer {
    grid-template-columns: 28px 1fr;
  }

  .stack-layer small {
    display: none;
  }

  .platform-tabs {
    grid-template-columns: 1fr;
  }

  .platform-tab {
    min-height: 62px;
  }

  .display-topbar {
    padding-inline: 12px;
  }

  .display-user span {
    display: none;
  }

  .panel-toolbar h4 {
    font-size: 27px;
  }

  .decision-card,
  .commerce-alert {
    grid-template-columns: auto 1fr;
  }

  .decision-card .mini-button,
  .commerce-alert .mini-button {
    grid-column: 1 / -1;
  }

  .malach-capabilities {
    grid-template-columns: 1fr;
  }

  .malach-app {
    min-width: 720px;
    transform: scale(0.61);
  }

  .malach-product {
    height: 330px;
  }

  .portfolio-card-wide {
    min-height: 680px;
  }

  .commerce-os-art {
    height: 320px;
  }

  .os-dashboard {
    padding: 10px;
  }

  .global-principles > div {
    grid-template-columns: 28px 1fr;
  }

  .global-principles small {
    grid-column: 2;
  }

  .global-coordinate {
    font-size: 6px;
  }

  .global-data {
    grid-template-columns: auto 1fr;
  }

  .global-data i,
  .global-data span:nth-of-type(2),
  .global-data strong:nth-of-type(2) {
    display: none;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-panel {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 34px 22px;
    border-radius: 20px;
  }

  .dialog-detail {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .success-card {
    padding: 42px 22px;
  }

  .success-card h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  [data-depth-card] {
    transform: none !important;
  }

  .cursor-aura,
  .cursor-glow {
    display: none;
  }
}
