:root {
  --ink-rgb: 237, 235, 222;          /* cream text/lines — flipped to dark in light mode */
  --shadow-rgb: 0, 0, 0;             /* shadow colour — soft warm grey in light mode */
  --header-bg: rgba(20, 13, 13, 0.55); /* sticky nav backdrop — flips light */
  --bg-top: #1b1716;                 /* page background (top) */
  --bg-bottom: #120f0f;              /* page background (bottom) */
  --bg-glow: rgba(129, 1, 0, 0.24);  /* ambient red wash behind the page */
  --cotton: rgb(var(--ink-rgb));
  --cherry: #810100;
  --maroon: #630102;
  --noir: var(--bg-top);
  --ink: rgb(var(--ink-rgb));
  --muted: rgba(var(--ink-rgb), 0.68);
  --line: rgba(var(--ink-rgb), 0.13);
  --paper: #1b1716;
  --white: #231f1e;
  --panel: #241f1e;
  --panel-2: #2b2523;
  --teal: #810100;
  --blue: #630102;
  --amber: rgb(var(--ink-rgb));
  --rose: #810100;
  --leaf: #630102;
  --red: #810100;
  --red-dark: #630102;
  --shadow: 0 28px 90px rgba(var(--shadow-rgb), 0.42);
  color-scheme: dark;
}

/* Final proportion and visual polish */
html {
  font-size: 16px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand,
.nav-links a,
.button,
.build-option strong {
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6.2vw, 6.2rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.15rem, 3.5vw, 4.05rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.18;
}

p,
li {
  line-height: 1.68;
}

.lead {
  max-width: 660px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.nav,
.hero-grid,
.section-inner,
.footer-inner {
  max-width: 1180px;
}

.hero {
  min-height: calc(100svh - 76px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 110px);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

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

.hero-copy p {
  max-width: 620px;
}

.hero-actions {
  gap: 12px;
}

.tech-orbit {
  min-height: clamp(460px, 55vh, 620px);
  border-radius: 20px;
}

.orbit-logo {
  left: 58%;
  width: clamp(94px, 9vw, 126px);
  height: clamp(94px, 9vw, 126px);
}

.orbit-logo img {
  width: 82%;
  height: 82%;
}

.orbit-node {
  min-width: 94px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: clamp(0.76rem, 0.9vw, 0.92rem);
}

.status-panel {
  left: 26px;
  right: auto;
  bottom: 26px;
  width: min(360px, calc(100% - 52px));
  border-radius: 12px;
}

.band,
.page-hero,
.footer {
  padding-left: 24px;
  padding-right: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
}

.grid.three,
.grid.two,
.article-list,
.service-detail-grid,
.industry-cases,
.mockup-grid {
  gap: 18px;
}

.card,
.article-card,
.service-panel,
.now-feature,
.media-board,
.article-sidebar,
.resource-rail {
  border-radius: 14px;
}

.build-showcase {
  padding-top: clamp(76px, 9vw, 112px);
  padding-bottom: clamp(82px, 9vw, 118px);
}

.build-showcase .section-heading {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  align-items: end;
  margin-bottom: 34px;
}

.build-showcase .section-heading h2 {
  max-width: 780px;
  font-size: clamp(3rem, 5vw, 5.45rem);
  line-height: 0.98;
}

.build-showcase .section-heading .lead {
  max-width: 520px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.build-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.build-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.build-option {
  min-height: 132px;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 10px;
  transform: none;
}

.build-option:hover,
.build-option.active {
  transform: translateY(-2px);
}

.build-option > svg {
  width: 24px;
  height: 24px;
}

.build-option strong {
  font-size: clamp(1.12rem, 1.55vw, 1.55rem);
  line-height: 1.08;
}

.build-option small {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.folder-window {
  height: clamp(560px, 66vh, 680px);
  grid-template-columns: 230px minmax(0, 1fr);
  border-radius: 14px;
}

.folder-sidebar {
  padding: 22px 18px;
}

.folder-brand {
  font-size: 1rem;
}

.folder-tree button {
  min-height: 34px;
  font-size: 0.86rem;
}

.doc-bar {
  height: 46px;
  padding: 0 18px;
}

.doc-bar strong {
  font-size: 0.86rem;
}

.visual-doc {
  height: calc(100% - 46px);
}

.visual-doc > * {
  min-height: 100%;
}

.system-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--cotton);
  background:
    radial-gradient(circle at 58% 52%, rgba(129, 1, 0, 0.26), transparent 16rem),
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    #080707;
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.system-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 7, 7, 0.86), transparent 18%, transparent 82%, rgba(8, 7, 7, 0.86)),
    linear-gradient(180deg, rgba(8, 7, 7, 0.62), transparent 28%, transparent 76%, rgba(8, 7, 7, 0.72));
}

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.system-lines path,
.system-lines line {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.52);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-center,
.system-chip,
.system-icon,
.flow-step,
.cloud-core,
.cloud-device {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  box-shadow: 0 24px 54px rgba(var(--shadow-rgb), 0.32);
}

.system-center {
  left: 50%;
  top: 50%;
  width: min(240px, 28%);
  min-height: 92px;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.88), rgba(99, 1, 2, 0.74));
}

.system-center svg {
  width: 30px;
  height: 30px;
}

.system-center strong {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1;
}

.system-center span {
  grid-column: 2;
  color: rgba(var(--ink-rgb), 0.68);
  font-size: 0.78rem;
  line-height: 1.25;
}

.system-chip,
.cloud-device {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.07);
  backdrop-filter: blur(10px);
  color: var(--cotton);
  font-size: 0.92rem;
  font-weight: 850;
}

.system-chip svg,
.cloud-device svg {
  width: 18px;
  height: 18px;
  color: rgba(var(--ink-rgb), 0.86);
}

.system-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.06);
  color: rgba(var(--ink-rgb), 0.86);
}

.system-icon svg {
  width: 24px;
  height: 24px;
}

.side-a { left: 8%; top: 21%; }
.side-b { left: 8%; top: 43%; }
.side-c { left: 8%; top: 65%; }
.node-a { left: 35%; top: 12%; }
.node-b { right: 8%; top: 23%; }
.node-c { left: 22%; top: 49%; }
.node-d { right: 7%; bottom: 22%; }
.node-e { left: 50%; bottom: 12%; transform: translateX(-50%); }
.node-f { left: 25%; bottom: 22%; }

.system-preview-automation {
  background:
    radial-gradient(circle at 50% 50%, rgba(129, 1, 0, 0.28), transparent 18rem),
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    #080707;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.flow-step {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 118px;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.08);
  text-align: center;
}

.flow-step svg {
  width: 26px;
  height: 26px;
}

.flow-step strong {
  font-size: 0.96rem;
  line-height: 1;
}

.flow-step span {
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.74rem;
}

.flow-agent {
  left: 35%;
  top: 36%;
  width: 230px;
  min-height: 112px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.9), rgba(99, 1, 2, 0.72));
}

.flow-trigger { left: 8%; top: 41%; }
.flow-review { right: 22%; top: 41%; }
.flow-output { right: 7%; top: 41%; }
.flow-tool-a { left: 30%; top: 14%; border-radius: 50%; }
.flow-tool-b { left: 47%; top: 14%; border-radius: 50%; }
.flow-tool-c { right: 28%; bottom: 14%; border-radius: 50%; }
.flow-tool-d { left: 30%; bottom: 14%; border-radius: 50%; }

.dashboard-shell {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 10%;
  width: 84%;
  height: 80%;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 72px rgba(var(--shadow-rgb), 0.36);
}

.dashboard-shell header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
}

.dashboard-shell header strong {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.dashboard-shell header span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(129, 1, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.dash-kpis article,
.dash-bars,
.dash-chart {
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 12px;
  background: rgba(8, 7, 7, 0.42);
}

.dash-kpis article {
  padding: 14px;
}

.dash-kpis span,
.dash-bars span {
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.78rem;
}

.dash-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1;
}

.dash-chart {
  grid-row: 3;
  min-height: 0;
  padding: 14px;
}

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

.dash-chart .area {
  fill: rgba(129, 1, 0, 0.28);
}

.dash-chart .line {
  fill: none;
  stroke: var(--cotton);
  stroke-width: 4;
}

.dash-bars {
  grid-column: 2;
  grid-row: 2 / 4;
  padding: 18px;
}

.dash-bars p {
  margin: 0 0 18px;
}

.dash-bars b {
  display: block;
  width: var(--w);
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cotton), var(--cherry));
}

.cloud-core {
  left: 50%;
  top: 50%;
  width: min(250px, 32%);
  min-height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.82), rgba(99, 1, 2, 0.58));
  text-align: center;
}

.cloud-core svg {
  width: 58px;
  height: 58px;
}

.cloud-core strong {
  font-size: clamp(1rem, 1.55vw, 1.4rem);
  line-height: 1;
}

.cloud-left { left: 9%; top: 45%; }
.cloud-right { right: 9%; top: 45%; }
.cloud-top { left: 50%; top: 12%; transform: translateX(-50%); }
.cloud-bottom { left: 50%; bottom: 12%; transform: translateX(-50%); }
.cloud-bottom-left { left: 20%; bottom: 21%; }
.cloud-bottom-right { right: 20%; bottom: 21%; }

.article-card {
  min-height: clamp(430px, 45vw, 620px);
}

.article-card h3 {
  font-size: clamp(1.65rem, 2.25vw, 2.35rem);
  line-height: 1.05;
}

.article-card p {
  font-size: 1rem;
  line-height: 1.58;
}

.page-hero {
  padding-top: clamp(72px, 8vw, 118px);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.article-layout {
  gap: clamp(28px, 4vw, 48px);
}

.article-body p,
.article-body li {
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.78;
}

.article-body h2 {
  margin-top: 1.35em;
}

/* Smooth resource polish inspired by modern editorial tech sites */
@keyframes pageFadeUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatPanel {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

html.site-ready body {
  animation: pageFadeUp 520ms ease both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.button,
.nav-links a,
.card,
.article-card,
.video-reference-grid a,
.build-option,
.sidebar-box a {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.button:hover,
.article-card:hover,
.card:hover,
.video-reference-grid a:hover {
  transform: translateY(-3px);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.article-card {
  min-height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border-color: rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--ink-rgb), 0.045);
}

.article-card:hover {
  border-color: rgba(var(--ink-rgb), 0.28);
  box-shadow: 0 26px 70px rgba(var(--shadow-rgb), 0.32);
}

.article-card-copy {
  padding: 24px;
}

.article-card h3 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.08;
}

.article-card p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.58;
}

.article-card .keyword-row {
  margin-top: 18px;
}

.article-card .blog-canvas {
  order: -1;
  min-height: 250px;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.blog-canvas {
  --accent: #810100;
  --accent-2: rgb(var(--ink-rgb));
  --panel-glow: rgba(129, 1, 0, 0.32);
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 16rem),
    radial-gradient(circle at 18% 88%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 14rem),
    linear-gradient(135deg, #070707, #181313 58%, #080707);
}

.api-visual,
.apis-visual {
  --accent: #3b82f6;
  --accent-2: #8ec5ff;
  --panel-glow: rgba(59, 130, 246, 0.34);
}

.automation-visual,
.devops-visual {
  --accent: #f05a4f;
  --accent-2: #ffd166;
  --panel-glow: rgba(240, 90, 79, 0.34);
}

.data-systems-visual,
.cloud-visual {
  --accent: #2dd4bf;
  --accent-2: #b9fff3;
  --panel-glow: rgba(45, 212, 191, 0.28);
}

.security-visual,
.governance-visual {
  --accent: #b987ff;
  --accent-2: #f1d9ff;
  --panel-glow: rgba(185, 135, 255, 0.3);
}

.documentation-visual,
.publishing-systems-visual,
.knowledge-systems-visual {
  --accent: #f97316;
  --accent-2: #ffe0c2;
  --panel-glow: rgba(249, 115, 22, 0.32);
}

.blog-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
}

.blog-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.22));
}

.blog-canvas .canvas-toolbar {
  position: relative;
  z-index: 4;
}

.blog-canvas > svg {
  z-index: 1;
}

.editorial-image {
  position: absolute;
  inset: 62px 24px 24px;
  z-index: 2;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--ink-rgb), 0.08), rgba(var(--ink-rgb), 0.025)),
    rgba(8, 7, 7, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(var(--ink-rgb), 0.08),
    0 28px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.editorial-image::before,
.editorial-image::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.editorial-image::before {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  box-shadow: 0 0 22px var(--panel-glow);
}

.editorial-image::after {
  left: 50%;
  top: 50%;
  width: 52%;
  height: 52%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, var(--panel-glow), transparent 68%);
}

.image-ribbon {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 999px;
  background: rgba(8, 7, 7, 0.62);
  color: var(--cotton);
  font-size: 0.78rem;
  font-weight: 850;
}

.image-ribbon svg {
  width: 17px;
  height: 17px;
  color: var(--accent-2);
}

.image-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(104px, 18vw, 170px);
  height: clamp(104px, 18vw, 170px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 7px solid var(--accent);
  border-radius: 50%;
  background: #0c0b14;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    0 0 38px var(--panel-glow);
  animation: floatPanel 6.5s ease-in-out infinite;
}

.image-orbit img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(var(--shadow-rgb), 0.32));
}

.orbit-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 4px solid var(--accent-2);
  border-radius: 50%;
  background: #100f19;
  box-shadow: 0 0 22px var(--panel-glow);
}

.od-1 { left: -46%; top: 10%; }
.od-2 { right: -44%; top: 18%; border-color: var(--accent); }
.od-3 { left: -28%; bottom: -26%; border-color: var(--accent); }
.od-4 { right: -34%; bottom: -30%; }

.article-card .canvas-card,
.article-card .canvas-image {
  display: none;
}

.article-card .blog-canvas > svg {
  opacity: 0.2;
}

.article-hero-visual {
  margin-top: 34px;
}

.article-hero-visual .blog-canvas {
  min-height: clamp(380px, 42vw, 520px);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(var(--shadow-rgb), 0.34);
}

.article-hero-visual .editorial-image {
  inset: 68px 36px 36px;
}

.article-hero-visual .canvas-card {
  z-index: 3;
  max-width: 190px;
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(27, 23, 22, 0.8);
  backdrop-filter: blur(12px);
}

.article-hero-visual .primary-card {
  left: 7%;
  top: 28%;
}

.article-hero-visual .data-card {
  right: 7%;
  top: 26%;
}

.article-hero-visual .ai-card {
  left: 15%;
  bottom: 12%;
}

.article-hero-visual .output-card {
  right: 13%;
  bottom: 13%;
}

.article-main > .lead {
  font-size: clamp(1.16rem, 1.55vw, 1.36rem);
}

.article-body {
  margin-top: 8px;
}

.article-body h2 {
  padding-top: 10px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
}

@media (max-width: 780px) {
  .article-list {
    grid-template-columns: 1fr;
  }

  .article-card .blog-canvas {
    min-height: 230px;
  }

  .article-hero-visual .canvas-card {
    display: none;
  }

  .article-hero-visual .editorial-image {
    inset: 62px 18px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-ready body,
  .image-orbit {
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Resource panel enforcement layer. Higher specificity beats older duplicate rules. */
body .article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: stretch;
}

body .article-card {
  min-height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border-color: rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--ink-rgb), 0.045);
}

body .article-card-copy {
  padding: 24px;
}

body .article-card h3 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.08;
}

body .article-card p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.58;
}

body .article-card .blog-canvas {
  order: -1;
  min-height: 250px;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

body .article-card .blog-canvas.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

body .blog-canvas {
  --accent: #810100;
  --accent-2: rgb(var(--ink-rgb));
  --panel-glow: rgba(129, 1, 0, 0.32);
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 16rem),
    radial-gradient(circle at 18% 88%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 14rem),
    linear-gradient(135deg, #070707, #181313 58%, #080707);
}

body .api-visual,
body .apis-visual {
  --accent: #3b82f6;
  --accent-2: #8ec5ff;
  --panel-glow: rgba(59, 130, 246, 0.34);
}

body .automation-visual,
body .devops-visual {
  --accent: #f05a4f;
  --accent-2: #ffd166;
  --panel-glow: rgba(240, 90, 79, 0.34);
}

body .data-systems-visual,
body .cloud-visual {
  --accent: #2dd4bf;
  --accent-2: #b9fff3;
  --panel-glow: rgba(45, 212, 191, 0.28);
}

body .security-visual,
body .governance-visual {
  --accent: #b987ff;
  --accent-2: #f1d9ff;
  --panel-glow: rgba(185, 135, 255, 0.3);
}

body .documentation-visual,
body .publishing-systems-visual,
body .knowledge-systems-visual {
  --accent: #f97316;
  --accent-2: #ffe0c2;
  --panel-glow: rgba(249, 115, 22, 0.32);
}

body .blog-canvas .canvas-toolbar {
  position: relative;
  z-index: 4;
}

body .blog-canvas .editorial-image {
  z-index: 2;
}

body .article-card .canvas-card,
body .article-card .canvas-image {
  display: none;
}

body .article-hero-visual .blog-canvas {
  min-height: clamp(380px, 42vw, 520px);
  margin-left: 0;
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(var(--shadow-rgb), 0.34);
}

body .article-hero-visual .editorial-image {
  inset: 68px 36px 36px;
}

body .article-hero-visual .canvas-card {
  z-index: 3;
  max-width: 190px;
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(27, 23, 22, 0.8);
  backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .hero-grid,
  .section-heading,
  .build-showcase .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .folder-window {
    height: auto;
    min-height: 680px;
    grid-template-columns: 1fr;
  }

  .folder-sidebar {
    max-height: 230px;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.13);
  }

  .visual-doc {
    min-height: 520px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .dash-bars {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav,
  .band,
  .page-hero,
  .hero,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    justify-content: center;
    width: 100%;
  }

  .tech-orbit {
    min-height: 420px;
  }

  .orbit-lines,
  .orbit-node {
    display: none;
  }

  .orbit-logo {
    left: 50%;
    top: 38%;
  }

  .status-panel {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .build-picker {
    grid-template-columns: 1fr;
  }

  .build-option {
    min-height: 108px;
  }

  .folder-window {
    min-height: 620px;
  }

  .visual-doc {
    min-height: 430px;
  }

  .system-center {
    width: 210px;
  }

  .system-chip,
  .cloud-device {
    min-width: auto;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .system-icon {
    width: 40px;
    height: 40px;
  }

  .side-a,
  .side-b,
  .side-c {
    left: 6%;
  }

  .node-b,
  .node-d,
  .flow-output,
  .flow-review {
    right: 5%;
  }

  .flow-agent {
    left: 50%;
    top: 38%;
    width: 200px;
    transform: translateX(-50%);
  }

  .flow-trigger {
    left: 6%;
    top: 20%;
  }

  .flow-review {
    top: 20%;
  }

  .flow-output {
    top: 64%;
  }

  .flow-tool-a,
  .flow-tool-b,
  .flow-tool-c,
  .flow-tool-d {
    display: none;
  }

  .dashboard-shell {
    left: 5%;
    top: 6%;
    width: 90%;
    height: 88%;
    padding: 16px;
  }

  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .cloud-core {
    width: 210px;
  }

  .cloud-left {
    left: 6%;
    top: 24%;
  }

  .cloud-right {
    right: 6%;
    top: 24%;
  }

  .cloud-bottom-left,
  .cloud-bottom-right {
    bottom: 18%;
  }
}

/* Last-mile page hero correction. Keep this at the end of the file. */
.page-hero .section-inner:has(> :only-child):not(:has([data-article])) {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
}

.page-hero h1,
.services-clean-hero h1,
.about-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.9rem, 5.4vw, 5.7rem);
  line-height: 1;
}

.page-hero .lead,
.services-clean-hero .lead,
.about-hero .lead {
  max-width: 760px;
}

@media (max-width: 640px) {
  .page-hero h1,
  .services-clean-hero h1,
  .about-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
    line-height: 1.02;
  }
}

/* Final hero sizing correction for non-home pages */
.page-hero .section-inner:has(> :only-child):not(:has([data-article])) {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
}

.page-hero h1,
.services-clean-hero h1,
.about-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.9rem, 5.4vw, 5.7rem);
  line-height: 1;
}

.page-hero .lead,
.services-clean-hero .lead,
.about-hero .lead {
  max-width: 760px;
}

@media (max-width: 640px) {
  .page-hero h1,
  .services-clean-hero h1,
  .about-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
    line-height: 1.02;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 0%, var(--bg-glow), transparent 28rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 34rem);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cotton);
  background: linear-gradient(135deg, var(--cherry), var(--maroon) 64%, var(--noir));
  box-shadow: 0 0 22px rgba(129, 1, 0, 0.34);
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.nav-links a,
.footer a {
  color: var(--muted);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active,
.footer a:hover {
  color: var(--cotton);
  background: rgba(129, 1, 0, 0.3);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 760;
  font-family: inherit;
  cursor: pointer;
}

.button.primary,
button.primary {
  color: var(--cotton);
  background: linear-gradient(135deg, var(--cherry), var(--maroon));
  box-shadow: 0 16px 36px rgba(129, 1, 0, 0.32);
}

.button.secondary {
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.07);
  border-color: var(--line);
}

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

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 46px 24px 34px;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -14% -18% 44%;
  height: 360px;
  background: radial-gradient(circle, rgba(129, 1, 0, 0.28), transparent 62%);
  pointer-events: none;
}

.hero-grid,
.section-inner,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: rgb(var(--ink-rgb));
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  max-width: 680px;
  margin-top: 22px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 8px;
  background: rgba(var(--ink-rgb), 0.055);
  color: rgb(var(--ink-rgb));
  font-size: 0.92rem;
  font-weight: 720;
}

.service-pills svg {
  width: 17px;
  height: 17px;
  color: rgb(var(--ink-rgb));
}

.hero-media {
  position: relative;
  min-height: 470px;
}

.parallax-layer {
  transform: translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
  will-change: transform;
}

.tech-orbit {
  position: relative;
  width: 100%;
  min-height: min(64vh, 620px);
  border-radius: 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background:
    radial-gradient(circle at 68% 48%, rgba(129, 1, 0, 0.34), transparent 9rem),
    radial-gradient(circle at 22% 18%, rgba(var(--ink-rgb), 0.08), transparent 10rem),
    #050505;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tech-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 60% 48%, black, transparent 72%);
}

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

.orbit-lines line {
  stroke: rgba(var(--ink-rgb), 0.76);
  stroke-width: 2;
}

.orbit-logo {
  position: absolute;
  left: 58%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(129, 1, 0, 0.2);
  box-shadow: 0 0 52px rgba(129, 1, 0, 0.44);
}

.orbit-logo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.2);
  background: rgba(var(--ink-rgb), 0.08);
  color: var(--cotton);
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(var(--shadow-rgb), 0.28);
}

.orbit-node::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cotton);
}

.n1 { left: 8%; top: 16%; }
.n2 { left: 16%; top: 47%; }
.n3 { left: 10%; top: 78%; }
.n4 { left: 41%; top: 7%; }
.n5 { left: 40%; top: 84%; }
.n6 { right: 8%; top: 20%; }
.n7 { right: 4%; top: 75%; }

.hero-photo {
  width: 100%;
  height: min(64vh, 620px);
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  filter: saturate(0.92) contrast(1.05) brightness(0.82);
}

.status-panel {
  position: absolute;
  left: -22px;
  bottom: 24px;
  width: min(330px, 78%);
  padding: 18px;
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.92);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  box-shadow: 0 20px 50px rgba(var(--shadow-rgb), 0.42);
  backdrop-filter: blur(18px);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.status-row strong {
  color: rgb(var(--ink-rgb));
}

.band {
  padding: 88px 24px;
}

.service-showcase {
  background:
    linear-gradient(180deg, #1b1716, #1b1716);
  border-bottom: 1px solid var(--line);
}

.band.white {
  background: #1b1716;
}

.band.ink {
  color: var(--cotton);
  background:
    linear-gradient(135deg, rgba(129, 1, 0, 0.16), transparent 34%),
    #1b1716;
}

.band.ink .lead,
.band.ink .muted,
.band.ink .metric span {
  color: rgba(var(--ink-rgb), 0.72);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading .lead {
  margin-top: 0;
  max-width: 520px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.055), rgba(var(--ink-rgb), 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
  box-shadow: 0 18px 50px rgba(var(--shadow-rgb), 0.18);
}

.band.white .card {
  background: rgba(var(--ink-rgb), 0.045);
}

.band.ink .card {
  background: rgba(var(--ink-rgb), 0.06);
  border-color: rgba(var(--ink-rgb), 0.13);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cotton);
  margin-bottom: 18px;
}

.icon.teal { background: var(--teal); }
.icon.blue { background: #810100; }
.icon.amber { background: #ea580c; }
.icon.rose { background: var(--rose); }
.icon.leaf { background: var(--leaf); }

.card p,
.muted,
.article-meta {
  color: var(--muted);
}

.compact-feature {
  min-height: 230px;
}

.compact-feature > svg {
  width: 36px;
  height: 36px;
  color: rgb(var(--ink-rgb));
  margin-bottom: 26px;
}

.compact-feature h3 {
  font-size: 1.45rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.metric {
  padding-top: 18px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.16);
}

.metric strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
}

.page-hero {
  padding: 78px 24px 58px;
  background:
    radial-gradient(circle at 72% 22%, rgba(129, 1, 0, 0.22), transparent 24rem),
    linear-gradient(180deg, #1b1716 0%, #1b1716 100%);
  border-bottom: 1px solid var(--line);
}

.services-clean-hero {
  padding: 116px 24px 78px;
  background: var(--bg-top);
  border-bottom: 1px solid var(--line);
}

.services-clean-hero h1 {
  max-width: 940px;
  font-size: clamp(4.2rem, 9vw, 9.2rem);
  line-height: 0.92;
}

.services-clean-hero .lead {
  max-width: 760px;
  color: rgba(var(--ink-rgb), 0.72);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

.service-intro {
  padding-top: 76px;
  padding-bottom: 82px;
  background: #1b1716;
}

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

.service-columns article {
  min-width: 0;
}

.service-columns svg {
  width: 34px;
  height: 34px;
  color: #810100;
  margin-bottom: 24px;
}

.service-columns h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.service-columns p {
  color: rgba(var(--ink-rgb), 0.66);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  margin-top: 16px;
}

.service-mockups {
  background: #1b1716;
  padding-top: 56px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-panel {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.055), rgba(var(--ink-rgb), 0.025)),
    #1b1716;
  position: relative;
}

.service-panel-graph {
  background:
    linear-gradient(135deg, rgba(var(--ink-rgb), 0.08), transparent 55%),
    #231f1e;
}

.panel-copy {
  position: relative;
  z-index: 1;
  padding: 34px 38px 28px;
}

.panel-copy h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.panel-copy p {
  color: rgba(var(--ink-rgb), 0.72);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  margin-top: 12px;
}

.mini-window {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 26px 0 0 9%;
  min-height: 340px;
  border-radius: 16px 0 0 0;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-right: 0;
  border-bottom: 0;
  background: #14100f;
  box-shadow: 0 22px 60px rgba(var(--shadow-rgb), 0.38);
}

.note-window {
  padding: 40px 38px;
}

.note-window p {
  max-width: 620px;
  color: rgb(var(--ink-rgb));
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.note-window a {
  color: rgb(var(--ink-rgb));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.suggest-box {
  width: min(390px, 78%);
  margin: 28px 0 0 34px;
  padding: 18px 22px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 10px;
  background: #231f1e;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.34);
}

.suggest-box strong,
.suggest-box span {
  display: block;
}

.suggest-box strong {
  margin-bottom: 12px;
}

.suggest-box span {
  color: rgba(var(--ink-rgb), 0.66);
  padding: 8px 0;
}

.graph-window {
  min-height: 370px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(129, 1, 0, 0.26), transparent 12rem),
    linear-gradient(rgba(var(--ink-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.04) 1px, transparent 1px),
    #0b0908;
  background-size: auto, 36px 36px, 36px 36px, auto;
}

.graph-window svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.graph-window path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.graph-window .line-base path {
  stroke: rgba(var(--ink-rgb), 0.16);
  stroke-width: 1.5;
}

.graph-window .line-flow path {
  stroke: rgba(var(--ink-rgb), 0.7);
  stroke-width: 1.8;
  stroke-dasharray: 3 13;
  animation: lineFlow 2.8s linear infinite;
}

.graph-window .gnode {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  border-radius: 999px;
  background: rgba(22, 18, 17, 0.92);
  color: var(--cotton);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(var(--shadow-rgb), 0.32);
}

.graph-window .gnode::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cotton);
}

.graph-window .gnode.core {
  padding: 13px 20px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.94), rgba(99, 1, 2, 0.8));
}

.service-list {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.service-list p {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 18px;
  align-items: start;
  color: rgba(var(--ink-rgb), 0.66);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.service-list svg {
  color: #810100;
  margin-top: 3px;
}

.service-list strong {
  color: rgb(var(--ink-rgb));
}

.access-mockup {
  min-height: 560px;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(90deg, #810100 0 10%, rgb(237, 235, 222) 10%);
  color: #1c1c1f;
  display: grid;
  align-content: start;
  gap: 0;
  box-shadow: var(--shadow);
}

.access-mockup h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  padding: 20px 0 28px 54px;
  border-bottom: 1px solid #dedede;
}

.access-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 24px 0 24px 54px;
  border-bottom: 1px solid #e2e2e2;
}

.access-row span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cotton);
  background: #810100;
  font-weight: 850;
}

.access-row:nth-child(3) span { background: #630102; }
.access-row:nth-child(4) span { background: #810100; }
.access-row:nth-child(5) span { background: #630102; }

.access-row em {
  color: #8b8b8b;
  font-style: normal;
}

.home-services-clean {
  background: #1b1716;
}

.build-showcase {
  padding-top: 88px;
  padding-bottom: 96px;
}

.build-showcase .section-heading {
  align-items: end;
  margin-bottom: 44px;
}

.build-showcase .section-heading h2 {
  max-width: 660px;
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  line-height: 1.02;
}

.build-showcase .section-heading .lead {
  max-width: 500px;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: clamp(1.04rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.build-lab {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(560px, 1.26fr);
  gap: 34px;
  align-items: start;
}

.build-picker {
  display: grid;
  gap: 10px;
}

.build-option {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 14px;
  min-height: auto;
  padding: 18px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--cotton);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.build-option:hover,
.build-option.active {
  background: rgba(var(--ink-rgb), 0.055);
  border-color: rgba(var(--ink-rgb), 0.12);
  transform: translateX(4px);
}

.build-option > svg {
  width: 28px;
  height: 28px;
  color: #810100;
  margin-top: 2px;
}

.build-option strong,
.build-option small {
  display: block;
}

.build-option strong {
  font-size: clamp(1.25rem, 1.75vw, 1.78rem);
  line-height: 1.12;
}

.build-option small {
  max-width: 420px;
  margin-top: 10px;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: clamp(0.92rem, 1.08vw, 1.02rem);
  line-height: 1.5;
}

.folder-window {
  height: clamp(600px, 70vh, 720px);
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  border-radius: 16px;
  background: #201d1c;
  box-shadow: 0 38px 90px rgba(var(--shadow-rgb), 0.38);
}

.folder-sidebar {
  border-right: 1px solid rgba(var(--ink-rgb), 0.13);
  background: rgba(var(--ink-rgb), 0.025);
  padding: 24px 20px;
  overflow-y: auto;
}

.folder-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}

.folder-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.folder-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 8px;
  background: rgba(var(--ink-rgb), 0.055);
  color: rgba(var(--ink-rgb), 0.45);
}

.folder-search span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.folder-search svg {
  width: 18px;
  height: 18px;
}

.folder-tree {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.folder-tree button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.65);
  font-size: 0.9rem;
  font-weight: 760;
}

.folder-tree button.open,
.folder-tree button:hover {
  background: rgba(129, 1, 0, 0.22);
  color: var(--cotton);
}

.folder-tree svg {
  width: 17px;
  height: 17px;
  color: #810100;
}

.folder-document {
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(129, 1, 0, 0.12), transparent 18rem),
    #1f1c1b;
}

.folder-sidebar::-webkit-scrollbar,
.folder-document::-webkit-scrollbar {
  width: 10px;
}

.folder-sidebar::-webkit-scrollbar-thumb,
.folder-document::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.22);
}

.folder-sidebar::-webkit-scrollbar-track,
.folder-document::-webkit-scrollbar-track {
  background: rgba(var(--ink-rgb), 0.035);
}

.doc-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
  background: rgba(var(--ink-rgb), 0.045);
}

.doc-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #810100;
}

.doc-bar span:nth-child(2) { background: #630102; }
.doc-bar span:nth-child(3) { background: rgb(237, 235, 222); }

.doc-bar strong {
  margin-left: 8px;
  color: rgba(var(--ink-rgb), 0.72);
  font-size: 0.9rem;
}

.doc-content {
  padding: 28px 32px 34px;
}

.visual-doc {
  height: calc(100% - 48px);
  padding: 0;
  overflow: hidden;
}

.visual-doc > * {
  height: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.doc-content h3 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  margin-top: 8px;
}

.doc-lead {
  margin-top: 14px;
  color: rgba(var(--ink-rgb), 0.72);
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
}

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

.doc-point {
  padding: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.04);
}

.doc-point strong,
.doc-point span {
  display: block;
}

.doc-point strong {
  color: var(--cotton);
}

.doc-point span {
  margin-top: 6px;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-code {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.13);
  border-radius: 12px;
  background: #110f0f;
}

.service-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.service-code code {
  color: rgb(var(--ink-rgb));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.52;
  white-space: pre;
}

.agent-map,
.n8n-map,
.cloud-map {
  position: relative;
  min-height: 220px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 14px;
  background:
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    #080707;
  background-size: 34px 34px;
}

.agent-map::before,
.n8n-map::before,
.cloud-map::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 1, 0, 0.25), transparent 62%);
}

.agent-core,
.cloud-object {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 150px;
  min-height: 118px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  background: rgba(129, 1, 0, 0.28);
}

.agent-core svg,
.cloud-object svg {
  width: 34px;
  height: 34px;
  color: var(--cotton);
}

.agent-core span {
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.8rem;
}

.agent-node,
.cloud-node,
.n8n-map span {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.17);
  background: rgba(var(--ink-rgb), 0.075);
  color: var(--cotton);
  font-size: 0.84rem;
  font-weight: 850;
}

.agent-node::before,
.cloud-node::before,
.n8n-map span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cotton);
}

.agent-node.input { left: 6%; top: 22%; }
.agent-node.context { right: 8%; top: 20%; }
.agent-node.tools { left: 9%; bottom: 20%; }
.agent-node.review { right: 7%; bottom: 18%; }
.agent-node.output { left: 41%; top: 8%; }

.n8n-map span {
  left: var(--x);
  top: var(--y);
  border-radius: 12px;
  background: rgba(129, 1, 0, 0.22);
}

.n8n-map svg,
.cloud-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.n8n-map path,
.cloud-map path {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.44);
  stroke-width: 3;
}

.crm-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 14px;
  background: #080707;
}

.dash-card,
.pipeline-bars,
.dash-table {
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.045);
}

.dash-card {
  padding: 14px;
}

.dash-card span,
.dash-card em {
  color: rgba(var(--ink-rgb), 0.62);
  font-style: normal;
}

.dash-card strong {
  display: block;
  color: var(--cotton);
  font-size: 1.8rem;
  line-height: 1;
  margin: 10px 0 6px;
}

.pipeline-bars {
  grid-column: 1 / 3;
  min-height: 150px;
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 18px;
}

.pipeline-bars b {
  flex: 1;
  min-height: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #810100, #630102);
}

.dash-table {
  padding: 10px 14px;
}

.dash-table p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.09);
  color: rgba(var(--ink-rgb), 0.62);
}

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

.dash-table strong {
  color: var(--cotton);
}

.cloud-node.upload { left: 8%; top: 18%; }
.cloud-node.index { right: 8%; top: 18%; }
.cloud-node.policy { left: 8%; bottom: 18%; }
.cloud-node.backup { right: 8%; bottom: 18%; }

.visual-only {
  min-height: 100%;
  background: #07151f;
}

.agent-map.visual-only {
  background:
    radial-gradient(circle at 50% 52%, rgba(34, 136, 184, 0.18), transparent 18rem),
    linear-gradient(90deg, rgba(9, 41, 58, 0.9), #07101a);
}

.agent-map.visual-only svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.agent-map.visual-only path {
  fill: none;
  stroke: rgba(201, 233, 246, 0.75);
  stroke-width: 2;
}

.agent-square,
.agent-code,
.agent-bubble {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 231, 249, 0.18);
  background: rgba(17, 49, 68, 0.92);
  color: #eff9ff;
  box-shadow: 0 0 24px rgba(47, 177, 214, 0.12);
}

.agent-square,
.agent-code {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.agent-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.agent-square svg,
.agent-code svg,
.agent-bubble svg {
  width: 20px;
  height: 20px;
}

.agent-map .agent-core {
  width: 250px;
  min-height: 74px;
  grid-template-columns: 1fr 34px;
  border-radius: 12px;
  background: rgba(20, 67, 91, 0.96);
  border-color: rgba(184, 231, 249, 0.2);
}

.agent-map .agent-core strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.agent-map .agent-core svg {
  width: 26px;
  height: 26px;
}

.agent-square.left.l1 { left: 7%; top: 22%; }
.agent-square.left.l2 { left: 7%; top: 43%; }
.agent-square.left.l3 { left: 7%; top: 64%; }
.agent-code.left-code { left: 19%; top: 43%; }
.agent-code.right-code { right: 9%; top: 43%; }
.agent-bubble.b1 { left: 29%; top: 12%; }
.agent-bubble.b2 { left: 47%; top: 10%; }
.agent-bubble.b3 { right: 25%; top: 12%; }
.agent-bubble.b4 { left: 29%; bottom: 12%; }
.agent-bubble.b5 { left: 47%; bottom: 10%; }
.agent-bubble.b6 { right: 25%; bottom: 12%; }

.workflow-canvas.visual-only {
  background:
    radial-gradient(circle at 85% 35%, rgba(168, 137, 255, 0.18), transparent 18rem),
    #f6f6f8;
  background-image:
    radial-gradient(circle, rgba(87, 92, 120, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #343746;
}

.workflow-canvas::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 22px solid #474b65;
  border-radius: 34px;
  pointer-events: none;
}

.workflow-node,
.workflow-tool,
.workflow-port {
  position: absolute;
  z-index: 2;
}

.workflow-node {
  display: grid;
  place-items: center;
  border: 2px solid #85899c;
  border-radius: 14px;
  background: #fff;
}

.workflow-node.trigger {
  left: 12%;
  top: 32%;
  width: 105px;
  height: 105px;
}

.workflow-node.trigger svg {
  width: 42px;
  height: 42px;
}

.workflow-node.agent {
  left: 43%;
  top: 32%;
  width: 250px;
  height: 105px;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px;
  text-align: left;
}

.workflow-node.agent svg {
  width: 36px;
  height: 36px;
}

.workflow-node.agent strong,
.workflow-node.agent small,
.workflow-tool strong {
  display: block;
}

.workflow-node.agent strong {
  font-size: 1rem;
}

.workflow-node.agent small {
  color: #8b8d98;
}

.workflow-port {
  right: 14%;
  width: 86px;
  height: 28px;
  color: #8b8d98;
  font-size: 0.78rem;
}

.workflow-port.success { top: 32%; }
.workflow-port.error { top: 39%; }

.workflow-tool {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 88px;
  color: #303346;
  text-align: center;
}

.workflow-tool svg {
  width: 64px;
  height: 64px;
  padding: 16px;
  border: 2px solid #c8cbda;
  border-radius: 50%;
  background: #f9f9fb;
  color: #4e55d8;
}

.workflow-tool strong {
  font-size: 0.72rem;
}

.workflow-tool.model { left: 25%; bottom: 12%; }
.workflow-tool.memory { left: 44%; bottom: 12%; }
.workflow-tool.scraper { left: 60%; bottom: 12%; }
.workflow-tool.notify { right: 10%; bottom: 12%; }

.workflow-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.workflow-canvas path {
  fill: none;
}

.workflow-canvas path.solid {
  stroke: #7b7e8f;
  stroke-width: 3;
}

.workflow-canvas path.dash {
  stroke: #8587ca;
  stroke-width: 3;
  stroke-dasharray: 8 9;
}

.crm-dashboard.visual-only {
  height: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  grid-template-columns: 0.65fr 1fr 1fr 1.15fr;
  grid-template-rows: 58px 1fr 1.25fr;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(210, 229, 232, 0.65)),
    #eef5f3;
  color: #28416f;
}

.crm-dashboard header {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #2a518f;
}

.crm-dashboard .dash-left,
.crm-dashboard .dash-right,
.crm-dashboard .dash-stat,
.crm-dashboard .dash-chart {
  background: rgba(70, 130, 175, 0.72);
  border: 0;
  border-radius: 2px;
  padding: 16px;
  color: #fff;
}

.crm-dashboard .dash-left {
  grid-row: 2 / 4;
  background: rgba(255, 255, 255, 0.56);
  color: #38405f;
}

.dash-left b,
.dash-right b {
  display: block;
  height: 10px;
  width: var(--w);
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2d5792, #35d6d0);
  color: transparent;
}

.crm-dashboard .dash-stat.one { grid-column: 2; grid-row: 2; }
.crm-dashboard .dash-stat.two { grid-column: 3; grid-row: 2; }

.crm-dashboard .dash-stat strong {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
}

.dash-stat.two em {
  display: block;
  width: 78px;
  height: 78px;
  margin: 8px auto 0;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.28);
  border-top-color: #24528d;
}

.crm-dashboard .dash-chart {
  grid-column: 2 / 4;
  grid-row: 3;
  background: rgba(55, 95, 150, 0.78);
}

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

.dash-chart path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
}

.crm-dashboard .dash-right {
  grid-column: 4;
  grid-row: 2 / 4;
  background: rgba(43, 47, 87, 0.9);
}

.dash-right p {
  margin-top: 14px;
}

.dash-right span {
  display: block;
  color: #fff;
  font-size: 0.78rem;
}

.cloud-map.visual-only {
  background: #f3f3f2;
  color: #30343a;
}

.cloud-map.visual-only::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 137, 201, 0.16), transparent 13rem);
}

.cloud-map .cloud-object {
  width: 220px;
  min-height: 140px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cloud-map .cloud-object svg {
  width: 190px;
  height: 130px;
  color: #1685c1;
  filter: drop-shadow(0 10px 6px rgba(var(--shadow-rgb), 0.15));
}

.cloud-map .device {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #1284bd;
}

.cloud-map .device svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.8;
  filter: drop-shadow(0 8px 4px rgba(var(--shadow-rgb), 0.13));
}

.cloud-map .device.phone svg,
.cloud-map .device.tablet svg {
  width: 38px;
  height: 38px;
}

.cloud-map .device.left { left: 11%; top: 40%; }
.cloud-map .device.right { right: 11%; top: 40%; }
.cloud-map .device.p1 { left: 18%; bottom: 28%; }
.cloud-map .device.p2 { right: 25%; top: 16%; }
.cloud-map .device.tablet { right: 19%; bottom: 28%; }

.cloud-map.visual-only > strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  z-index: 2;
  color: #34383f;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 450;
}

.cloud-map.visual-only path {
  stroke: #1da5dc;
  stroke-width: 3;
}

.build-showcase .section-heading {
  max-width: 1080px;
}

.build-lab {
  grid-template-columns: 1fr;
  gap: 22px;
}

.build-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.build-option {
  grid-template-columns: 30px 1fr;
  padding: 16px;
  border-color: rgba(var(--ink-rgb), 0.08);
  background: rgba(var(--ink-rgb), 0.032);
}

.build-option:hover,
.build-option.active {
  transform: translateY(-2px);
  background: rgba(129, 1, 0, 0.18);
  border-color: rgba(var(--ink-rgb), 0.18);
}

.build-option > svg {
  width: 24px;
  height: 24px;
}

.build-option strong {
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
}

.build-option small {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.42;
}

.folder-window {
  height: clamp(560px, 68vh, 690px);
  grid-template-columns: minmax(220px, 0.25fr) minmax(0, 1fr);
  border-color: rgba(var(--ink-rgb), 0.14);
  background: #171312;
  box-shadow: 0 30px 80px rgba(var(--shadow-rgb), 0.36);
}

.folder-sidebar {
  background: #1f1b1a;
}

.folder-document {
  background: #080707;
}

.visual-doc > * {
  border-radius: 0;
}

.visual-only {
  background:
    radial-gradient(circle at 72% 36%, rgba(129, 1, 0, 0.3), transparent 16rem),
    radial-gradient(circle at 30% 12%, rgba(var(--ink-rgb), 0.08), transparent 16rem),
    #080707;
}

.agent-map.visual-only,
.workflow-canvas.visual-only,
.crm-dashboard.visual-only,
.cloud-map.visual-only {
  color: var(--cotton);
  background:
    radial-gradient(circle at 70% 34%, rgba(129, 1, 0, 0.34), transparent 16rem),
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    #080707;
  background-size: auto, 38px 38px, 38px 38px;
}

.agent-map.visual-only path,
.workflow-canvas path.solid,
.workflow-canvas path.dash,
.cloud-map.visual-only path {
  stroke: rgba(var(--ink-rgb), 0.5);
  stroke-width: 2;
}

.workflow-canvas path.dash {
  stroke-dasharray: 8 8;
}

.agent-square,
.agent-code,
.agent-bubble,
.workflow-node,
.workflow-tool svg,
.cloud-map .device {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.07);
  color: var(--cotton);
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.22);
}

.agent-map .agent-core,
.workflow-node.agent,
.cloud-map .cloud-object {
  background: rgba(129, 1, 0, 0.58);
  border-color: rgba(var(--ink-rgb), 0.18);
}

.agent-map .agent-core {
  width: min(280px, 36%);
}

.workflow-canvas::before {
  inset: 24px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 18px;
}

.workflow-node {
  border: 1px solid rgba(var(--ink-rgb), 0.14);
}

.workflow-node.trigger {
  left: 10%;
  top: 35%;
  width: 96px;
  height: 96px;
}

.workflow-node.agent {
  left: 40%;
  top: 35%;
  width: 270px;
  height: 96px;
  color: var(--cotton);
}

.workflow-node.agent small,
.workflow-port {
  color: rgba(var(--ink-rgb), 0.58);
}

.workflow-tool {
  color: rgba(var(--ink-rgb), 0.8);
}

.workflow-tool svg {
  background: rgba(var(--ink-rgb), 0.07);
  color: var(--cotton);
}

.crm-dashboard.visual-only {
  grid-template-columns: 0.72fr 1fr 1fr 1fr;
  grid-template-rows: 56px 1fr 1.18fr;
  padding: 28px;
  color: var(--cotton);
}

.crm-dashboard header {
  color: var(--cotton);
}

.crm-dashboard .dash-left,
.crm-dashboard .dash-right,
.crm-dashboard .dash-stat,
.crm-dashboard .dash-chart {
  color: var(--cotton);
  background: rgba(var(--ink-rgb), 0.07);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 10px;
}

.crm-dashboard .dash-left {
  color: rgba(var(--ink-rgb), 0.78);
  background: rgba(var(--ink-rgb), 0.045);
}

.crm-dashboard .dash-right {
  background: rgba(99, 1, 2, 0.34);
}

.dash-left b,
.dash-right b,
.pipeline-bars b {
  background: linear-gradient(90deg, #630102, #810100, rgb(237, 235, 222));
}

.dash-stat.two em {
  border-color: rgba(var(--ink-rgb), 0.16);
  border-top-color: #810100;
}

.dash-chart path {
  stroke: var(--cotton);
}

.cloud-map .cloud-object {
  box-shadow: 0 0 55px rgba(129, 1, 0, 0.18);
}

.cloud-map .cloud-object svg {
  color: rgb(var(--ink-rgb));
  filter: drop-shadow(0 16px 28px rgba(129, 1, 0, 0.28));
}

.cloud-map .device svg {
  color: var(--cotton);
  filter: none;
}

.cloud-map.visual-only > strong {
  color: rgba(var(--ink-rgb), 0.88);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 760;
}

.about-hero {
  padding: 112px 24px 82px;
  background: var(--bg-top);
  border-bottom: 1px solid var(--line);
}

.about-hero h1 {
  max-width: 1060px;
  font-size: clamp(3.5rem, 7.4vw, 7.6rem);
  line-height: 0.94;
}

.about-hero .lead {
  max-width: 860px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.about-story {
  background: #1b1716;
}

.about-story .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 70px;
  align-items: start;
}

.about-copy p:not(.eyebrow) {
  color: rgba(var(--ink-rgb), 0.72);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  max-width: 760px;
  margin-top: 22px;
}

.about-principles {
  display: grid;
  gap: 16px;
}

.about-principles article {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.045);
}

.about-principles strong {
  color: #810100;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.about-principles h3 {
  margin-top: 12px;
}

.about-principles p {
  color: rgba(var(--ink-rgb), 0.66);
  margin-top: 10px;
}

.about-industries {
  background: #1b1716;
}

.about-industries h2 {
  max-width: 920px;
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.industry-strip span {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.055);
  color: rgb(var(--ink-rgb));
  font-weight: 760;
}

.service-detail {
  background: #1b1716;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-detail-grid article,
.industry-cases article {
  min-width: 0;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.045);
}

.service-detail-grid h3,
.industry-cases h3 {
  font-size: 1.28rem;
}

.service-detail-grid p,
.industry-cases p {
  color: rgba(var(--ink-rgb), 0.66);
  margin-top: 12px;
}

.service-industries {
  background: #1b1716;
  border-top: 1px solid var(--line);
}

.industry-cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.industry-cases span {
  display: inline-block;
  color: rgb(var(--ink-rgb));
  font-weight: 850;
  margin-bottom: 18px;
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: center;
}

.page-hero .section-inner:has([data-article]) {
  display: block;
  max-width: 1280px;
}

.device-stage {
  min-height: 430px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(129, 1, 0, 0.4), transparent 9rem),
    radial-gradient(circle at 20% 82%, rgba(153, 27, 27, 0.35), transparent 10rem),
    linear-gradient(145deg, #1b1716, #1b1716 70%);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.06), var(--shadow);
  position: relative;
  overflow: hidden;
}

.device-stage::before,
.device-stage::after {
  position: absolute;
  z-index: 0;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: rgba(10, 11, 15, 0.72);
  color: rgb(var(--ink-rgb));
  font-size: 0.83rem;
  font-weight: 760;
  box-shadow: 0 20px 40px rgba(var(--shadow-rgb), 0.34);
}

.device-stage::before {
  content: "AI routing";
  top: 54px;
  left: 32px;
}

.device-stage::after {
  content: "Live API";
  right: 34px;
  bottom: 58px;
}

.device {
  width: min(320px, 78vw);
  aspect-ratio: 0.52;
  border-radius: 34px;
  padding: 18px;
  background: linear-gradient(180deg, #630102, #1b1716 32%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  position: relative;
  z-index: 1;
}

.device-screen {
  height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(129, 1, 0, 0.12), transparent 30%),
    #1b1716;
  padding: 20px;
  overflow: hidden;
  color: var(--ink);
}

.device-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 850;
}

.task {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: rgba(var(--ink-rgb), 0.06);
}

.task small {
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 48px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #810100, #630102);
  color: var(--cotton);
  display: grid;
  place-items: center;
  font-weight: 850;
}

.team-member {
  display: flex;
  gap: 16px;
}

.avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cotton);
  background: linear-gradient(135deg, var(--teal), var(--red-dark));
  font-weight: 850;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.blog-lab-band {
  padding-top: 38px;
}

.blog-notebook {
  display: grid;
  gap: 28px;
}

.now-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 30px;
  align-items: stretch;
  min-height: 430px;
  padding: 32px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 44%, rgba(129, 1, 0, 0.28), transparent 17rem),
    rgba(var(--ink-rgb), 0.045);
  box-shadow: var(--shadow);
}

.now-feature p {
  color: var(--muted);
  max-width: 620px;
  margin-top: 16px;
  font-size: 1.08rem;
}

.now-graphic {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 16px;
  background:
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    #070606;
  background-size: 36px 36px;
  overflow: hidden;
}

.now-graphic img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  z-index: 2;
  filter: drop-shadow(0 0 36px rgba(129, 1, 0, 0.55));
}

.now-graphic span {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  background: rgba(var(--ink-rgb), 0.075);
  color: var(--cotton);
  font-weight: 850;
}

.now-graphic span:nth-of-type(1) { left: 8%; top: 18%; }
.now-graphic span:nth-of-type(2) { right: 12%; top: 16%; }
.now-graphic span:nth-of-type(3) { left: 10%; bottom: 18%; }
.now-graphic span:nth-of-type(4) { right: 10%; bottom: 18%; }

.now-graphic svg,
.mini-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.now-graphic path,
.mini-network path {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.68);
  stroke-width: 2;
}

.notebook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.note-stack {
  display: grid;
  gap: 16px;
}

.note-card,
.resource-rail {
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.045);
}

.note-card {
  padding: 22px;
}

.note-card time {
  color: rgba(var(--ink-rgb), 0.62);
  font-weight: 850;
  font-size: 0.86rem;
}

.note-card h3 {
  margin-top: 8px;
}

.note-card p {
  color: var(--muted);
  margin-top: 10px;
}

.note-tags,
.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tags {
  margin-top: 14px;
}

.note-tags span,
.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--ink-rgb), 0.13);
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.055);
  color: rgba(var(--ink-rgb), 0.78);
  font-size: 0.82rem;
  font-weight: 780;
}

.keyword-row {
  margin-top: 18px;
}

.resource-rail {
  padding: 22px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.resource-rail h3 {
  margin-top: 8px;
}

.resource-rail h3:first-child {
  margin-top: 0;
}

.resource-rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(129, 1, 0, 0.18);
  color: var(--cotton);
  font-weight: 800;
}

.resource-rail svg {
  width: 18px;
  height: 18px;
}

.resource-rail p {
  color: var(--muted);
  line-height: 1.55;
}

.article-card {
  min-height: 610px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(var(--ink-rgb), 0.045);
  box-shadow: 0 28px 80px rgba(var(--shadow-rgb), 0.26);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ink-rgb), 0.26);
  background: rgba(var(--ink-rgb), 0.06);
}

.article-card-copy {
  padding: 36px 38px 28px;
}

.article-card h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.article-card p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-top: 18px;
}

.article-card p span {
  color: var(--cotton);
  font-weight: 850;
}

.article-meta {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: rgba(var(--ink-rgb), 0.68);
}

.blog-canvas {
  position: relative;
  min-height: 340px;
  margin: 0 0 -1px 9%;
  border-radius: 18px 0 0 0;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background:
    linear-gradient(135deg, rgba(99, 1, 2, 0.34), transparent 48%),
    var(--noir);
  overflow: hidden;
}

.canvas-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(var(--ink-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
}

.canvas-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cherry);
}

.canvas-toolbar span:nth-child(2) { background: var(--maroon); }
.canvas-toolbar span:nth-child(3) { background: var(--cotton); }

.canvas-toolbar b {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.canvas-card {
  position: absolute;
  z-index: 1;
  width: 180px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  background: #231f1e;
  box-shadow: 0 18px 38px rgba(var(--shadow-rgb), 0.25);
}

.canvas-card strong,
.canvas-card small {
  display: block;
}

.canvas-card strong {
  color: var(--cotton);
}

.canvas-card small {
  color: var(--muted);
  margin-top: 8px;
}

.canvas-card svg {
  width: 32px;
  height: 32px;
  color: var(--cotton);
  margin-bottom: 18px;
}

.primary-card {
  left: 38px;
  top: 76px;
  background: var(--cherry);
}

.primary-card small,
.primary-card svg {
  color: rgba(var(--ink-rgb), 0.78);
}

.data-card { right: 38px; top: 76px; }
.ai-card { left: 28%; bottom: 36px; background: #2a2422; }
.output-card { right: 48px; bottom: 52px; background: var(--maroon); }

.canvas-image {
  position: absolute;
  z-index: 2;
  left: 44%;
  top: 42%;
  width: 118px;
  min-height: 106px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  background: rgba(5, 5, 5, 0.82);
  box-shadow: 0 20px 38px rgba(var(--shadow-rgb), 0.36);
}

.canvas-image img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.canvas-image span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
}

.blog-canvas > svg {
  position: absolute;
  inset: 54px 0 0;
  width: 100%;
  height: calc(100% - 54px);
  opacity: 0.65;
}

.blog-canvas path {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.28);
  stroke-width: 2;
}

.article-body {
  width: 100%;
  max-width: 860px;
  min-width: 0;
}

article[data-article] {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

.article-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(270px, 1fr);
  gap: 48px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.sidebar-box {
  padding: 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.045);
}

.sidebar-box h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.sidebar-box a {
  display: block;
  color: var(--muted);
  padding: 7px 0;
  font-weight: 720;
}

.sidebar-box a:hover {
  color: var(--cotton);
}

.sidebar-box p,
.sidebar-box li {
  color: var(--muted);
  font-size: 0.95rem;
}

.sidebar-box ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.article-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-top: 42px;
}

.article-body p {
  margin-top: 16px;
  color: rgba(var(--ink-rgb), 0.78);
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-infobox {
  width: min(860px, 100%);
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.045);
}

.article-infobox h2 {
  font-size: 1.18rem;
  margin: 0 0 14px;
}

.article-infobox dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.article-infobox div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
}

.article-infobox dt {
  color: var(--cotton);
  font-weight: 850;
}

.article-infobox dd {
  margin: 0;
  color: var(--muted);
}

.article-kicker {
  color: var(--cotton) !important;
  font-size: clamp(1.16rem, 1.7vw, 1.35rem) !important;
  line-height: 1.55;
}

.article-callout {
  margin-top: 34px;
  padding: 24px;
  border-left: 4px solid var(--cherry);
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.055);
}

.article-callout strong,
.article-callout span {
  display: block;
}

.article-callout strong {
  color: var(--cotton);
  font-size: 1.08rem;
}

.article-callout span {
  color: var(--muted);
  margin-top: 8px;
}

.code-card {
  /* code block stays dark; keep code text light in both modes (override derived vars) */
  --ink-rgb: 237, 235, 222;
  --ink: rgb(237, 235, 222);
  --cotton: rgb(237, 235, 222);
  --muted: rgba(237, 235, 222, 0.68);
  margin-top: 22px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #120f0f;
  box-shadow: 0 18px 48px rgba(var(--shadow-rgb), 0.22);
}

.code-title {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
  color: var(--cotton);
  background: rgba(129, 1, 0, 0.28);
  font-weight: 850;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
}

.code-card code {
  color: rgb(var(--ink-rgb));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre;
}

.article-hero-visual {
  width: min(940px, 100%);
  margin-top: 38px;
}

.article-hero-visual .blog-canvas {
  min-height: 440px;
  margin-left: 0;
  border-radius: 18px;
}

.media-board {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.045);
}

.media-board-copy p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 14px;
}

.mini-network {
  position: relative;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background:
    radial-gradient(circle at 52% 50%, rgba(129, 1, 0, 0.28), transparent 9rem),
    #050505;
  overflow: hidden;
}

.mini-network img {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
}

.mini-node {
  position: absolute;
  z-index: 2;
  max-width: 148px;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.17);
  background: rgba(var(--ink-rgb), 0.08);
  color: var(--cotton);
  font-size: 0.82rem;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.mini-network:hover .mini-node {
  background: rgba(129, 1, 0, 0.28);
}

.mini-node:hover {
  transform: translateY(-3px);
}

.mini-1 { left: 8%; top: 16%; }
.mini-2 { right: 8%; top: 14%; }
.mini-3 { left: 8%; bottom: 18%; }
.mini-4 { right: 8%; bottom: 18%; }

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

.video-reference-grid a {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.045);
}

.video-reference-grid a:hover {
  background: rgba(129, 1, 0, 0.16);
}

.video-thumb {
  grid-row: 1 / 3;
  width: 70px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(129, 1, 0, 0.9), rgba(99, 1, 2, 0.75)),
    #120f0f;
}

.video-thumb svg {
  width: 24px;
  height: 24px;
  color: var(--cotton);
}

.video-reference-grid strong {
  color: var(--cotton);
}

.video-reference-grid small {
  color: var(--muted);
}

.bibliography-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  counter-reset: bibliography;
}

.bibliography-list p {
  position: relative;
  margin-top: 0;
  padding: 15px 16px 15px 52px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.04);
}

.bibliography-list p::before {
  counter-increment: bibliography;
  content: counter(bibliography);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cherry);
  color: var(--cotton);
  font-size: 0.78rem;
  font-weight: 850;
}

.project-citation {
  margin-top: 46px;
  padding: 26px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 14px;
  background: rgba(129, 1, 0, 0.18);
}

.project-citation h2 {
  margin-top: 0;
}

.reference-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.reference-list a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: rgba(var(--ink-rgb), 0.045);
}

.reference-list a:hover {
  border-color: rgba(var(--ink-rgb), 0.3);
  background: rgba(129, 1, 0, 0.16);
}

.reference-list span {
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 24px;
  display: grid;
  gap: 22px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--paper);
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  padding: 58px 24px 34px;
  background: #1b1716;
  border-top: 1px solid rgba(237, 235, 222, 0.13);
  /* deliberate dark footer — keep cream text in both modes.
     Override the DERIVED vars (they resolve at :root) AND the base
     color (inherited from body as an already-resolved value). */
  --ink-rgb: 237, 235, 222;
  --ink: rgb(237, 235, 222);
  --cotton: rgb(237, 235, 222);
  --muted: rgba(237, 235, 222, 0.68);
  --line: rgba(237, 235, 222, 0.13);
  color: rgba(237, 235, 222, 0.68);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .page-hero .section-inner,
  .grid.three,
  .grid.two,
  .flow,
  .article-list,
  .now-feature,
  .notebook-grid,
  .media-board,
  .build-lab,
  .folder-window,
  .footer-inner,
  .service-columns,
  .service-detail-grid,
  .industry-cases,
  .mockup-grid,
  .about-story .section-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .resource-rail {
    order: -1;
  }

  .build-showcase .section-heading {
    align-items: start;
  }

  .folder-window {
    min-height: auto;
  }

  .folder-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.13);
  }

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

  .service-columns {
    gap: 34px;
  }

  .service-panel {
    min-height: 520px;
  }

  .about-story .section-inner {
    gap: 34px;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-photo {
    height: auto;
    min-height: 0;
  }

  .status-panel {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav,
  .band,
  .page-hero,
  .hero,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .article-card {
    min-height: 560px;
  }

  .build-showcase {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .build-showcase .section-heading h2 {
    font-size: clamp(2.45rem, 10vw, 3.35rem);
    line-height: 1.04;
  }

  .build-lab {
    gap: 28px;
  }

  .build-picker {
    grid-template-columns: 1fr;
  }

  .build-option {
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 18px 14px;
  }

  .build-option > svg {
    width: 28px;
    height: 28px;
  }

  .build-option strong {
    font-size: 1.25rem;
  }

  .folder-sidebar {
    padding: 22px 18px;
  }

  .doc-content {
    padding: 26px 18px 28px;
  }

  .doc-grid,
  .crm-dashboard {
    grid-template-columns: 1fr;
  }

  .pipeline-bars {
    grid-column: auto;
  }

  .agent-map,
  .n8n-map,
  .cloud-map {
    min-height: 310px;
  }

  .agent-core,
  .cloud-object {
    width: 126px;
  }

  .agent-node,
  .cloud-node,
  .n8n-map span {
    font-size: 0.74rem;
    padding: 8px 9px;
  }

  .now-feature {
    padding: 22px;
    min-height: auto;
  }

  .now-graphic,
  .mini-network {
    min-height: 300px;
  }

  .now-graphic span,
  .mini-node {
    max-width: 130px;
    font-size: 0.76rem;
  }

  .article-card-copy {
    padding: 26px 22px 20px;
  }

  .blog-canvas {
    min-height: 300px;
    margin-left: 20px;
  }

  .canvas-card {
    width: 145px;
    padding: 12px;
  }

  .canvas-image {
    width: 92px;
    min-height: 88px;
    left: 42%;
    top: 44%;
  }

  .canvas-image img {
    width: 44px;
    height: 44px;
  }

  .primary-card {
    left: 18px;
    top: 66px;
  }

  .data-card {
    right: 18px;
    top: 74px;
  }

  .ai-card {
    left: 22px;
    bottom: 28px;
  }

  .output-card {
    right: 18px;
    bottom: 36px;
  }

  .article-hero-visual .blog-canvas {
    min-height: 360px;
  }

  .media-board {
    padding: 18px;
  }

  .video-reference-grid {
    grid-template-columns: 1fr;
  }

  .video-reference-grid a {
    grid-template-columns: 58px 1fr;
  }

  .video-thumb {
    width: 58px;
    height: 46px;
  }

  .bibliography-list p {
    padding-left: 46px;
  }

  .services-clean-hero {
    padding-top: 74px;
  }

  .services-clean-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .about-hero {
    padding-top: 74px;
  }

  .about-hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.7rem);
  }

  .mockup-grid {
    gap: 18px;
  }

  .service-panel {
    min-height: 560px;
  }

  .panel-copy {
    padding: 26px 24px 18px;
  }

  .mini-window {
    margin-left: 20px;
    min-height: 365px;
  }

  .note-window {
    padding: 42px 24px;
  }

  .suggest-box {
    width: 92%;
    margin-left: 0;
  }

  .service-list p {
    grid-template-columns: 28px 1fr;
  }

  .access-mockup {
    min-height: 460px;
    padding: 22px;
    border-radius: 22px;
  }

  .access-mockup h3,
  .access-row {
    padding-left: 34px;
  }

  .access-row {
    grid-template-columns: 44px 1fr;
  }

  .access-row em {
    grid-column: 2;
  }
}

/* Candoura final pass: consistent proportions, alignment, and workbench visuals */
.page-hero .section-inner:has(> :only-child):not(:has([data-article])) {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
}

.page-hero h1,
.services-clean-hero h1,
.about-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.9rem, 5.4vw, 5.7rem);
  line-height: 1;
}

.page-hero .lead,
.services-clean-hero .lead,
.about-hero .lead {
  max-width: 760px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6.2vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.15rem, 3.5vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.18;
}

p,
li {
  line-height: 1.68;
}

.lead {
  max-width: 660px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.hero-grid,
.section-inner,
.footer-inner,
.nav {
  max-width: 1180px;
}

.hero {
  min-height: calc(100svh - 76px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 110px);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

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

.hero-copy p {
  max-width: 620px;
}

.tech-orbit {
  min-height: clamp(460px, 55vh, 620px);
  border-radius: 20px;
}

.orbit-logo {
  left: 58%;
  width: clamp(94px, 9vw, 126px);
  height: clamp(94px, 9vw, 126px);
}

.orbit-logo img {
  width: 82%;
  height: 82%;
}

.orbit-node {
  min-width: 94px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: clamp(0.76rem, 0.9vw, 0.92rem);
}

.status-panel {
  left: 26px;
  right: auto;
  bottom: 26px;
  width: min(360px, calc(100% - 52px));
  border-radius: 12px;
}

.band,
.page-hero,
.footer {
  padding-left: 24px;
  padding-right: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
}

.build-showcase {
  padding-top: clamp(76px, 9vw, 112px);
  padding-bottom: clamp(82px, 9vw, 118px);
}

.build-showcase .section-heading {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  align-items: end;
  margin-bottom: 34px;
}

.build-showcase .section-heading h2 {
  max-width: 780px;
  font-size: clamp(3rem, 5vw, 5.45rem);
  line-height: 0.98;
}

.build-showcase .section-heading .lead {
  max-width: 520px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.build-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.build-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.build-option {
  min-height: 132px;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 10px;
  transform: none;
}

.build-option:hover,
.build-option.active {
  transform: translateY(-2px);
}

.build-option > svg {
  width: 24px;
  height: 24px;
}

.build-option strong {
  font-size: clamp(1.12rem, 1.55vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.build-option small {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.folder-window {
  height: clamp(560px, 66vh, 680px);
  grid-template-columns: 230px minmax(0, 1fr);
  border-radius: 14px;
}

.folder-sidebar {
  padding: 22px 18px;
}

.folder-brand {
  font-size: 1rem;
}

.folder-tree button {
  min-height: 34px;
  font-size: 0.86rem;
}

.doc-bar {
  height: 46px;
  padding: 0 18px;
}

.doc-bar strong {
  font-size: 0.86rem;
}

.visual-doc {
  height: calc(100% - 46px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.visual-doc > * {
  height: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.system-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--cotton);
  background:
    radial-gradient(circle at 58% 52%, rgba(129, 1, 0, 0.26), transparent 16rem),
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    #080707;
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.system-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 7, 7, 0.86), transparent 18%, transparent 82%, rgba(8, 7, 7, 0.86)),
    linear-gradient(180deg, rgba(8, 7, 7, 0.62), transparent 28%, transparent 76%, rgba(8, 7, 7, 0.72));
}

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.system-lines path,
.system-lines line {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.52);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-center,
.system-chip,
.system-icon,
.flow-step,
.cloud-core,
.cloud-device {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  box-shadow: 0 24px 54px rgba(var(--shadow-rgb), 0.32);
}

.system-center {
  left: 50%;
  top: 50%;
  width: min(240px, 28%);
  min-height: 92px;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.88), rgba(99, 1, 2, 0.74));
}

.system-center svg {
  width: 30px;
  height: 30px;
}

.system-center strong {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1;
}

.system-center span {
  grid-column: 2;
  color: rgba(var(--ink-rgb), 0.68);
  font-size: 0.78rem;
  line-height: 1.25;
}

.system-chip,
.cloud-device {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.07);
  backdrop-filter: blur(10px);
  color: var(--cotton);
  font-size: 0.92rem;
  font-weight: 850;
}

.system-chip svg,
.cloud-device svg {
  width: 18px;
  height: 18px;
  color: rgba(var(--ink-rgb), 0.86);
}

.system-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.06);
  color: rgba(var(--ink-rgb), 0.86);
}

.system-icon svg {
  width: 24px;
  height: 24px;
}

.side-a { left: 8%; top: 21%; }
.side-b { left: 8%; top: 43%; }
.side-c { left: 8%; top: 65%; }
.node-a { left: 35%; top: 12%; }
.node-b { right: 8%; top: 23%; }
.node-c { left: 22%; top: 49%; }
.node-d { right: 7%; bottom: 22%; }
.node-e { left: 50%; bottom: 12%; transform: translateX(-50%); }
.node-f { left: 25%; bottom: 22%; }

.system-preview-automation {
  background:
    radial-gradient(circle at 50% 50%, rgba(129, 1, 0, 0.28), transparent 18rem),
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    #080707;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.flow-step {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 118px;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.08);
  text-align: center;
}

.flow-step svg {
  width: 26px;
  height: 26px;
}

.flow-step strong {
  font-size: 0.96rem;
  line-height: 1;
}

.flow-step span {
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.74rem;
}

.flow-agent {
  left: 35%;
  top: 36%;
  width: 230px;
  min-height: 112px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.9), rgba(99, 1, 2, 0.72));
}

.flow-trigger { left: 8%; top: 41%; }
.flow-review { right: 22%; top: 41%; }
.flow-output { right: 7%; top: 41%; }
.flow-tool-a { left: 30%; top: 14%; border-radius: 50%; }
.flow-tool-b { left: 47%; top: 14%; border-radius: 50%; }
.flow-tool-c { right: 28%; bottom: 14%; border-radius: 50%; }
.flow-tool-d { left: 30%; bottom: 14%; border-radius: 50%; }

.dashboard-shell {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 10%;
  width: 84%;
  height: 80%;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 72px rgba(var(--shadow-rgb), 0.36);
}

.dashboard-shell header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
}

.dashboard-shell header strong {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.dashboard-shell header span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(129, 1, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.dash-kpis article,
.dash-bars,
.dash-chart {
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 12px;
  background: rgba(8, 7, 7, 0.42);
}

.dash-kpis article {
  padding: 14px;
}

.dash-kpis span,
.dash-bars span {
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.78rem;
}

.dash-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1;
}

.dash-chart {
  grid-row: 3;
  min-height: 0;
  padding: 14px;
}

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

.dash-chart .area {
  fill: rgba(129, 1, 0, 0.28);
}

.dash-chart .line {
  fill: none;
  stroke: var(--cotton);
  stroke-width: 4;
}

.dash-bars {
  grid-column: 2;
  grid-row: 2 / 4;
  padding: 18px;
}

.dash-bars p {
  margin: 0 0 18px;
}

.dash-bars b {
  display: block;
  width: var(--w);
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cotton), var(--cherry));
}

.cloud-core {
  left: 50%;
  top: 50%;
  width: min(250px, 32%);
  min-height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.82), rgba(99, 1, 2, 0.58));
  text-align: center;
}

.cloud-core svg {
  width: 58px;
  height: 58px;
}

.cloud-core strong {
  font-size: clamp(1rem, 1.55vw, 1.4rem);
  line-height: 1;
}

.cloud-left { left: 9%; top: 45%; }
.cloud-right { right: 9%; top: 45%; }
.cloud-top { left: 50%; top: 12%; transform: translateX(-50%); }
.cloud-bottom { left: 50%; bottom: 12%; transform: translateX(-50%); }
.cloud-bottom-left { left: 20%; bottom: 21%; }
.cloud-bottom-right { right: 20%; bottom: 21%; }

.card,
.article-card,
.service-panel,
.now-feature,
.media-board,
.article-sidebar,
.resource-rail {
  border-radius: 14px;
}

.article-card {
  min-height: clamp(430px, 45vw, 620px);
}

.article-card h3 {
  font-size: clamp(1.65rem, 2.25vw, 2.35rem);
  line-height: 1.05;
}

.article-card p {
  font-size: 1rem;
  line-height: 1.58;
}

.page-hero {
  padding-top: clamp(72px, 8vw, 118px);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.article-layout {
  gap: clamp(28px, 4vw, 48px);
}

.article-body p,
.article-body li {
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.78;
}

.article-body h2 {
  margin-top: 1.35em;
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .hero-grid,
  .section-heading,
  .build-showcase .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .folder-window {
    height: auto;
    min-height: 680px;
    grid-template-columns: 1fr;
  }

  .folder-sidebar {
    max-height: 230px;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.13);
  }

  .visual-doc {
    min-height: 520px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .dash-bars {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav,
  .band,
  .page-hero,
  .hero,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    justify-content: center;
    width: 100%;
  }

  .tech-orbit {
    min-height: 420px;
  }

  .orbit-lines,
  .orbit-node {
    display: none;
  }

  .orbit-logo {
    left: 50%;
    top: 38%;
  }

  .status-panel {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .build-picker {
    grid-template-columns: 1fr;
  }

  .build-option {
    min-height: 108px;
  }

  .folder-window {
    min-height: 620px;
  }

  .visual-doc {
    min-height: 430px;
  }

  .system-center {
    width: 210px;
  }

  .system-chip,
  .cloud-device {
    min-width: auto;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .system-icon {
    width: 40px;
    height: 40px;
  }

  .side-a,
  .side-b,
  .side-c {
    left: 6%;
  }

  .node-b,
  .node-d,
  .flow-output,
  .flow-review {
    right: 5%;
  }

  .flow-agent {
    left: 50%;
    top: 38%;
    width: 200px;
    transform: translateX(-50%);
  }

  .flow-trigger {
    left: 6%;
    top: 20%;
  }

  .flow-review {
    top: 20%;
  }

  .flow-output {
    top: 64%;
  }

  .flow-tool-a,
  .flow-tool-b,
  .flow-tool-c,
  .flow-tool-d {
    display: none;
  }

  .dashboard-shell {
    left: 5%;
    top: 6%;
    width: 90%;
    height: 88%;
    padding: 16px;
  }

  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .cloud-core {
    width: 210px;
  }

  .cloud-left {
    left: 6%;
    top: 24%;
  }

  .cloud-right {
    right: 6%;
    top: 24%;
  }

  .cloud-bottom-left,
  .cloud-bottom-right {
    bottom: 18%;
  }
}

/* ===== Graphics v2: aligned diagrams, animated data flows, calmer reveals ===== */
@keyframes lineFlow {
  to { stroke-dashoffset: -96; }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.system-lines path {
  vector-effect: non-scaling-stroke;
}

.system-lines .line-base path {
  stroke: rgba(var(--ink-rgb), 0.16);
  stroke-width: 1.5;
}

.system-lines .line-flow path {
  stroke: rgba(var(--ink-rgb), 0.75);
  stroke-width: 1.8;
  stroke-dasharray: 3 13;
  animation: lineFlow 2.8s linear infinite;
}

.sys-node {
  left: var(--cx);
  top: var(--cy);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.system-chip.sys-node,
.cloud-device.sys-node,
.flow-step.sys-node {
  background: rgba(22, 18, 17, 0.92);
}

.flow-step.flow-agent.sys-node {
  background: linear-gradient(135deg, rgba(129, 1, 0, 0.94), rgba(99, 1, 2, 0.8));
}

.system-icon.sys-node {
  border-radius: 50%;
  background: rgba(22, 18, 17, 0.9);
}

.system-center::before,
.cloud-core::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(129, 1, 0, 0.45), transparent 68%);
  animation: corePulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Blog lab graphic + article mini network */
.now-graphic svg,
.mini-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.now-graphic path,
.mini-network path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.now-graphic .line-base path,
.mini-network .line-base path {
  stroke: rgba(var(--ink-rgb), 0.16);
  stroke-width: 1.5;
}

.now-graphic .line-flow path,
.mini-network .line-flow path {
  stroke: rgba(var(--ink-rgb), 0.7);
  stroke-width: 1.8;
  stroke-dasharray: 3 13;
  animation: lineFlow 2.8s linear infinite;
}

.now-graphic img,
.mini-network img {
  box-sizing: content-box;
  padding: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 50%;
  background: #0a0808;
  box-shadow: 0 0 46px rgba(129, 1, 0, 0.45);
}

.now-graphic span:nth-of-type(n) {
  left: var(--cx);
  top: var(--cy);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: rgba(22, 18, 17, 0.92);
}

.mini-network .mini-node {
  left: var(--cx);
  top: var(--cy);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: rgba(22, 18, 17, 0.92);
}

.mini-node:hover {
  transform: translate(-50%, -50%) translateY(-3px);
}

/* Services mockup panels */
.service-panel .panel-copy {
  padding-bottom: 0;
}

.service-panel .mini-window {
  margin-top: 26px;
}

.suggest-box {
  margin-left: 0;
}

/* Snappier, earlier reveals */
.reveal-on-scroll {
  transform: translateY(16px);
  transition:
    opacity 440ms ease,
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .system-chip.sys-node,
  .cloud-device.sys-node {
    min-width: auto;
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .flow-step.sys-node {
    min-width: 92px;
    min-height: 68px;
    padding: 10px;
  }

  .flow-step.flow-agent.sys-node {
    width: 190px;
  }

  .graph-window .gnode {
    font-size: 0.78rem;
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-lines .line-flow path,
  .now-graphic .line-flow path,
  .mini-network .line-flow path,
  .graph-window .line-flow path,
  .system-center::before,
  .cloud-core::before {
    animation: none;
  }
}

/* Service split checklist: let text flow beside the icon instead of breaking per word */
.service-list p {
  display: block;
  position: relative;
  padding-left: 52px;
}

.service-list p svg {
  position: absolute;
  left: 0;
  top: 4px;
  margin-top: 0;
}

@media (max-width: 640px) {
  .service-list p {
    padding-left: 42px;
  }
}

/* Article hero canvas: drop the redundant floating logo card that overlapped the orbit */
.article-hero-visual .canvas-image {
  display: none;
}

/* Article facts: first box of the article sidebar */
.article-infobox {
  width: 100%;
  margin: 0;
  padding: 18px;
}

.article-infobox h2 {
  font-size: 1rem;
}

.article-infobox div {
  grid-template-columns: 112px 1fr;
  gap: 12px;
}

.article-infobox dt,
.article-infobox dd {
  font-size: 0.95rem;
}

.article-body h2 {
  overflow: hidden;
}

/* ===== Article hero flow: aligned Inputs -> AI step -> Output diagram ===== */
.article-flow {
  --accent: #810100;
  --accent-2: rgb(var(--ink-rgb));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 22rem),
    linear-gradient(rgba(var(--ink-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.04) 1px, transparent 1px),
    #0a0808;
  background-size: auto, 40px 40px, 40px 40px, auto;
  box-shadow: 0 34px 90px rgba(var(--shadow-rgb), 0.34);
}

.af-stage {
  position: relative;
  height: clamp(320px, 36vw, 440px);
}

.af-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.af-stage > svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.af-stage .line-base path {
  stroke: rgba(var(--ink-rgb), 0.16);
  stroke-width: 1.5;
}

.af-stage .line-flow path {
  stroke: color-mix(in srgb, var(--accent-2) 75%, transparent);
  stroke-width: 1.8;
  stroke-dasharray: 3 13;
  animation: lineFlow 2.8s linear infinite;
}

.af-node {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 12px;
  background: rgba(22, 18, 17, 0.94);
  color: var(--cotton);
  text-align: center;
  box-shadow: 0 20px 44px rgba(var(--shadow-rgb), 0.32);
}

.af-node strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.af-node small {
  color: rgba(var(--ink-rgb), 0.6);
  font-size: 0.78rem;
  white-space: nowrap;
}

.af-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 6px;
  min-width: 170px;
  padding: 18px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, rgba(var(--ink-rgb), 0.2));
  border-radius: 18px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 36%, #140f0e), #140f0e 78%);
  color: var(--cotton);
  text-align: center;
  box-shadow: 0 0 54px color-mix(in srgb, var(--accent) 32%, transparent);
}

.af-core::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 68%);
  animation: corePulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.af-core img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(var(--shadow-rgb), 0.4));
}

.af-core strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.af-core strong svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

.af-core small {
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.78rem;
  text-transform: capitalize;
}

@media (max-width: 640px) {
  .af-stage {
    height: 340px;
  }

  .af-node {
    padding: 9px 12px;
  }

  .af-node small {
    display: none;
  }

  .af-core {
    min-width: 140px;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-stage .line-flow path,
  .af-core::before {
    animation: none;
  }
}

/* ===== Blog card scene: relevant per-article illustration ===== */
.card-scene .scene-stage {
  position: absolute;
  inset: 44px 0 0;
  z-index: 1;
  overflow: hidden;
}

.card-scene .scene-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-scene .scene-stage path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.card-scene .line-base path {
  stroke: rgba(var(--ink-rgb), 0.14);
  stroke-width: 1.5;
}

.card-scene .line-flow path {
  stroke: color-mix(in srgb, var(--accent-2) 68%, transparent);
  stroke-width: 1.6;
  stroke-dasharray: 3 12;
  animation: lineFlow 2.8s linear infinite;
}

.card-scene .scene-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(var(--ink-rgb), 0.22));
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 42%, #140f0e), #140f0e 80%);
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 34%, transparent);
}

.card-scene .scene-core::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 68%);
  animation: corePulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.card-scene .scene-core svg {
  width: 32px;
  height: 32px;
  color: var(--accent-2);
}

.card-scene .scene-chip {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, -50%);
  padding: 7px 13px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 999px;
  background: rgba(20, 16, 15, 0.92);
  color: var(--cotton);
  font-size: 0.8rem;
  font-weight: 820;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .card-scene .line-flow path,
  .card-scene .scene-core::before {
    animation: none;
  }
}

/* ===== Team / leadership cards ===== */
.team-grid .team-member {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-head .avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.team-head h3 {
  font-size: 1.18rem;
  line-height: 1.15;
}

.team-role {
  margin-top: 4px;
  color: #810100;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.band.white .team-role {
  color: #810100;
}

.team-member .muted {
  flex: 1;
  line-height: 1.6;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--cotton);
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.team-link:hover {
  background: rgba(129, 1, 0, 0.22);
  border-color: rgba(var(--ink-rgb), 0.28);
  transform: translateY(-2px);
}

.team-link svg {
  width: 16px;
  height: 16px;
}

/* ===== Nav "Join Us" button ===== */
.nav-join {
  min-height: 38px;
  padding: 8px 14px;
  margin-left: 6px;
  font-size: 0.92rem;
  gap: 6px;
}

.nav-join svg {
  width: 16px;
  height: 16px;
}

.nav-join:hover {
  color: var(--cotton);
  background: linear-gradient(135deg, var(--cherry), var(--maroon));
}

@media (max-width: 900px) {
  .nav-join {
    margin-left: 0;
  }
}

/* ===== Careers application form ===== */
.req {
  color: #810100;
  font-weight: 850;
}

.muted-note {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.application-form {
  display: grid;
  gap: 22px;
  max-width: 920px;
  padding: clamp(22px, 3vw, 34px);
}

.form-section {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  margin: 0;
}

.application-form .form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.form-section h3 {
  margin: 0 0 18px;
  font-size: 1.18rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid label,
.form-grid .field {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 0;
}

.field-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(var(--ink-rgb), 0.04);
  cursor: pointer;
  font-weight: 760;
  transition: border-color 160ms ease, background 160ms ease;
}

.choice:hover {
  border-color: rgba(var(--ink-rgb), 0.28);
}

.choice input {
  width: auto;
  accent-color: #810100;
}

.choice:has(input:checked) {
  border-color: #810100;
  background: rgba(129, 1, 0, 0.18);
}

.file-field input[type=file] {
  padding: 11px 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

.file-field input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(129, 1, 0, 0.2);
  color: var(--cotton);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
}

.file-name {
  color: #b9f6ca;
  font-weight: 700;
  font-size: 0.82rem;
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  width: auto;
  margin-top: 3px;
  accent-color: #810100;
  flex: 0 0 auto;
}

[data-permanent].is-muted {
  opacity: 0.5;
}

label.invalid input,
label.invalid select,
label.invalid textarea,
.field.invalid .choice-row {
  border-color: #810100;
  box-shadow: 0 0 0 1px #810100;
}

.field.invalid .choice {
  border-color: rgba(129, 1, 0, 0.6);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.application-success {
  max-width: 920px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(36px, 5vw, 56px);
}

.application-success .icon {
  width: 56px;
  height: 56px;
  margin: 0;
}

.application-success .icon svg {
  width: 28px;
  height: 28px;
}

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

/* Ensure the [hidden] attribute still wins over the grid display rules above */
.application-form[hidden],
.application-success[hidden] {
  display: none;
}

/* ===== Application success popup (animated) ===== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal[hidden] {
  display: none;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 7, 0.72);
  backdrop-filter: blur(8px);
  animation: modalFade 0.3s ease both;
}

.success-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 40px 32px 30px;
  text-align: center;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(129, 1, 0, 0.32), transparent 60%),
    #1b1716;
  box-shadow: 0 40px 110px rgba(var(--shadow-rgb), 0.55);
  overflow: hidden;
  animation: modalPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-dialog h2 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

.success-dialog p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.success-dialog .button {
  margin-top: 22px;
}

.redirect-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(var(--ink-rgb), 0.55) !important;
}

.success-check {
  width: 88px;
  height: 88px;
}

.sc-ring {
  fill: none;
  stroke: #810100;
  stroke-width: 4;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: scRing 0.55s ease forwards 0.15s;
}

.sc-tick {
  fill: none;
  stroke: var(--cotton);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: scTick 0.35s ease forwards 0.6s;
}

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

.confetti span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  background: var(--c, #810100);
  opacity: 0;
  animation: confettiBurst 0.95s ease-out forwards;
  animation-delay: var(--d, 0s);
}

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

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.88) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

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

@keyframes confettiBurst {
  0% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 180deg)) scale(0.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .success-backdrop,
  .success-dialog,
  .sc-ring,
  .sc-tick,
  .confetti span {
    animation: none;
  }
  .sc-ring,
  .sc-tick { stroke-dashoffset: 0; }
  .confetti { display: none; }
}

/* ===== Application form: submit error + loading states ===== */
.form-error {
  margin: 0 0 4px;
  padding: 12px 16px;
  border: 1px solid rgba(129, 1, 0, 0.5);
  border-radius: 10px;
  background: rgba(129, 1, 0, 0.16);
  color: var(--cotton);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-error[hidden] {
  display: none;
}

.form-error a {
  color: var(--cotton);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.application-form button[type=submit][disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ===== Hero polish ===== */
.hl {
  background: linear-gradient(120deg, #ff5a4d, #c81e14 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e23b34;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 34px;
}

.hero-trust span {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-trust strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--cotton);
}

/* ===== Why Candoura / Built for the Next Era ===== */
.why-candoura {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% -10%, rgba(129, 1, 0, 0.55), transparent 42%),
    radial-gradient(circle at 92% 110%, rgba(129, 1, 0, 0.45), transparent 45%),
    linear-gradient(135deg, #2a0d0c, #1b0a0a 58%, #120808);
  overflow: hidden;
}

.why-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.why-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 90, 77, 0.4);
  border-radius: 999px;
  color: #ff6a5d;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.why-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
}

.why-copy p {
  max-width: 460px;
  margin-top: 22px;
  color: rgba(var(--ink-rgb), 0.66);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

.why-copy .button {
  margin-top: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(var(--ink-rgb), 0.09);
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.035);
  backdrop-filter: blur(6px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 77, 0.32);
  background: rgba(129, 1, 0, 0.16);
}

.why-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255, 90, 77, 0.28);
  background: linear-gradient(150deg, rgba(129, 1, 0, 0.55), rgba(99, 1, 2, 0.3));
  color: #ff8478;
}

.why-icon svg {
  width: 21px;
  height: 21px;
}

.why-card h3 {
  font-size: 1.08rem;
}

.why-card p {
  margin-top: 8px;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ===== Join the team CTA ===== */
.join-team-cta {
  padding-bottom: clamp(64px, 8vw, 104px);
}

.join-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(255, 90, 77, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(129, 1, 0, 0.45), transparent 55%),
    linear-gradient(135deg, #241010, #1b0c0b);
}

.join-cta-card h2 {
  margin-top: 6px;
}

.join-cta-card .lead {
  margin-top: 12px;
  max-width: 640px;
}

.join-cta-btn {
  flex: 0 0 auto;
}

/* ===== Reviews ===== */
.review-summary {
  display: grid;
  gap: 8px;
  align-content: center;
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.review-score strong {
  font-size: 2.8rem;
  line-height: 1;
}

.review-stars {
  color: #ffc24b;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.045);
  box-shadow: 0 18px 50px rgba(var(--shadow-rgb), 0.18);
}

.review-card .review-stars {
  font-size: 1.05rem;
}

.review-text {
  color: var(--ink);
  line-height: 1.62;
}

.review-meta strong {
  display: block;
}

.review-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Star rating input */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 2rem;
  line-height: 1;
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-input label {
  color: rgba(var(--ink-rgb), 0.24);
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: #ffc24b;
}

.star-input label:hover {
  transform: scale(1.1);
}

/* ===== Blog card art v2 (premium preview) ===== */
.card-scene .scene-stage {
  position: absolute;
  inset: 44px 0 0;
  z-index: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-scene .scene-rings {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 64%);
  animation: corePulse 4s ease-in-out infinite;
}

.card-scene .scene-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(80%, 310px);
  padding: 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.1), rgba(var(--ink-rgb), 0.02));
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 64px rgba(var(--shadow-rgb), 0.42);
}

.card-scene .scene-tile {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(var(--ink-rgb), 0.2));
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 60%, #140f0e), #140f0e 85%);
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 42%, transparent);
}

.card-scene .scene-tile svg {
  width: 26px;
  height: 26px;
  color: var(--accent-2);
}

.card-scene .scene-lines {
  display: grid;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.card-scene .scene-lines span {
  height: 8px;
  width: var(--w, 80%);
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 70%, transparent), rgba(var(--ink-rgb), 0.1));
}

.card-scene .scene-chip {
  position: absolute;
  z-index: 3;
  left: auto;
  top: auto;
  transform: none;
  padding: 6px 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 999px;
  background: rgba(20, 16, 15, 0.94);
  color: var(--cotton);
  font-size: 0.76rem;
  font-weight: 820;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(var(--shadow-rgb), 0.36);
}

.card-scene .scene-chip.sc-a { top: 14px; left: 16px; }
.card-scene .scene-chip.sc-b { bottom: 14px; right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .card-scene .scene-rings { animation: none; }
}

@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px 20px; }
  .hero-trust strong { font-size: 1.2rem; }
}

/* ===== Hero product showcase (replaces orbit) ===== */
.showcase {
  position: relative;
  width: 100%;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 22%, rgba(129, 1, 0, 0.34), transparent 50%),
    linear-gradient(155deg, #161210, #0c0a09);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  background: rgba(var(--ink-rgb), 0.03);
}

.showcase-bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #810100;
}

.showcase-bar > span:nth-child(2) { background: #b8413a; }
.showcase-bar > span:nth-child(3) { background: rgba(var(--ink-rgb), 0.5); }

.showcase-bar b {
  margin-left: 10px;
  color: rgba(var(--ink-rgb), 0.78);
  font-size: 0.86rem;
  font-weight: 760;
}

.sc-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(45, 200, 110, 0.14);
  color: #7af0a8;
  font-size: 0.72rem;
  font-weight: 850;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sc-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd46e;
  box-shadow: 0 0 0 0 rgba(45, 212, 110, 0.6);
  animation: scPulse 1.8s ease-out infinite;
}

@keyframes scPulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 110, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(45, 212, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 110, 0); }
}

.showcase-stage {
  position: relative;
  height: clamp(330px, 40vh, 420px);
  background:
    linear-gradient(rgba(var(--ink-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sc-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.sc-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Slide 1 — website mock */
.sc-web {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.04);
}

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

.sc-web-nav .d {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff5a4d, #810100);
}

.sc-web-nav i {
  width: 34px;
  height: 7px;
  border-radius: 99px;
  background: rgba(var(--ink-rgb), 0.16);
}

.sc-web-nav .sc-pill {
  margin-left: auto;
  width: 52px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ff5a4d, #810100);
}

.sc-web-hero {
  display: grid;
  gap: 9px;
}

.sc-web-hero b {
  height: 16px;
  width: 82%;
  border-radius: 6px;
  background: rgba(var(--ink-rgb), 0.7);
}

.sc-web-hero b.sm { width: 56%; height: 11px; background: rgba(var(--ink-rgb), 0.28); }

.sc-web-hero .sc-btn {
  display: inline-block;
  width: 92px;
  height: 26px;
  margin-top: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5a4d, #810100);
}

.sc-web-hero .sc-btn.ghost {
  width: 78px;
  margin-left: 8px;
  background: rgba(var(--ink-rgb), 0.1);
}

.sc-web-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sc-web-cards div {
  height: 60px;
  border-radius: 10px;
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  animation: scRise 2.4s ease-in-out infinite;
}

.sc-web-cards div:nth-child(2) { animation-delay: 0.25s; }
.sc-web-cards div:nth-child(3) { animation-delay: 0.5s; }

@keyframes scRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Slide 2 — mobile mock */
.sc-phone {
  width: 168px;
  height: 100%;
  max-height: 330px;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  background: linear-gradient(160deg, #211917, #100c0b);
  box-shadow: 0 30px 70px rgba(var(--shadow-rgb), 0.45);
}

.sc-phone-screen {
  height: 100%;
  border-radius: 22px;
  background: #0c0a09;
  padding: 16px 14px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  overflow: hidden;
}

.sc-phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-phone-head span {
  width: 64px;
  height: 10px;
  border-radius: 99px;
  background: rgba(var(--ink-rgb), 0.6);
}

.sc-phone-head i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5a4d, #810100);
}

.sc-phone-hero {
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 90, 77, 0.5), rgba(129, 1, 0, 0.3));
}

.sc-list {
  display: grid;
  gap: 9px;
  align-content: start;
}

.sc-list span {
  height: 26px;
  border-radius: 9px;
  background: rgba(var(--ink-rgb), 0.07);
  animation: scShimmer 2s ease-in-out infinite;
}

.sc-list span:nth-child(2) { animation-delay: 0.2s; }
.sc-list span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scShimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.sc-tabbar {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
}

.sc-tabbar i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(var(--ink-rgb), 0.2);
}

.sc-tabbar i:first-child { background: #ff5a4d; }

/* Slide 3 — security */
.sc-sec {
  width: 100%;
  max-width: 360px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.sc-shield {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(45, 212, 110, 0.3);
  background: radial-gradient(circle, rgba(45, 200, 110, 0.22), rgba(20, 16, 15, 0.6));
  color: #7af0a8;
  box-shadow: 0 0 38px rgba(45, 200, 110, 0.22);
}

.sc-shield svg { width: 34px; height: 34px; }

.sc-checks {
  display: grid;
  gap: 9px;
  width: 100%;
}

.sc-checks p {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  color: rgba(var(--ink-rgb), 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-8px);
}

.sc-slide.is-active .sc-checks p {
  animation: scIn 0.4s ease forwards;
}

.sc-slide.is-active .sc-checks p:nth-child(1) { animation-delay: 0.25s; }
.sc-slide.is-active .sc-checks p:nth-child(2) { animation-delay: 0.45s; }
.sc-slide.is-active .sc-checks p:nth-child(3) { animation-delay: 0.65s; }

@keyframes scIn {
  to { opacity: 1; transform: none; }
}

.sc-checks svg {
  width: 16px;
  height: 16px;
  color: #2dd46e;
  flex: 0 0 auto;
}

.sc-scan {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: rgba(var(--ink-rgb), 0.1);
  overflow: hidden;
}

.sc-scan b {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2dd46e, #7af0a8);
}

.sc-slide.is-active .sc-scan b {
  animation: scScan 2.6s ease-in-out infinite;
}

@keyframes scScan {
  0% { width: 8%; }
  60% { width: 100%; }
  100% { width: 100%; }
}

.sc-secnote {
  color: rgba(122, 240, 168, 0.85);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Slide 4 — dashboard */
.sc-dash {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 16px;
}

.sc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sc-kpis div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
}

.sc-kpis span {
  color: rgba(var(--ink-rgb), 0.55);
  font-size: 0.72rem;
}

.sc-kpis strong {
  display: block;
  margin-top: 5px;
  font-size: 1.3rem;
  line-height: 1;
}

.sc-chart {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  background: rgba(var(--ink-rgb), 0.03);
  padding: 6px;
}

.sc-chart .area {
  fill: rgba(255, 90, 77, 0.18);
}

.sc-chart .line {
  fill: none;
  stroke: #ff5a4d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.sc-slide.is-active .sc-chart .line {
  animation: scDraw 1.8s ease forwards;
}

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

.showcase-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
  background: rgba(var(--ink-rgb), 0.03);
}

.sc-caption {
  color: var(--cotton);
  font-weight: 800;
  font-size: 0.92rem;
}

.sc-dots {
  display: flex;
  gap: 8px;
}

.sc-dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(var(--ink-rgb), 0.22);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.sc-dots button.on {
  width: 24px;
  border-radius: 99px;
  background: #ff5a4d;
}

@media (prefers-reduced-motion: reduce) {
  .sc-web-cards div,
  .sc-list span,
  .sc-scan b,
  .sc-checks p,
  .sc-chart .line,
  .sc-live::before {
    animation: none !important;
  }
  .sc-checks p { opacity: 1; transform: none; }
  .sc-chart .line { stroke-dashoffset: 0; }
}

/* ===== Workbench sidebar tree buttons (detailed + animated) ===== */
.folder-tree {
  display: grid;
  gap: 6px;
}

.folder-tree .tree-item {
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.72);
  text-align: left;
  cursor: pointer;
  animation: treeIn 0.4s ease both;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.folder-tree .tree-ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background: rgba(var(--ink-rgb), 0.05);
  color: rgba(var(--ink-rgb), 0.7);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.folder-tree .tree-ic svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

.folder-tree .tree-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.folder-tree .tree-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  color: rgba(var(--ink-rgb), 0.82);
}

.folder-tree .tree-text small {
  font-size: 0.74rem;
  color: rgba(var(--ink-rgb), 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-tree .tree-chev {
  width: 15px;
  height: 15px;
  color: rgba(var(--ink-rgb), 0.32);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.folder-tree .tree-item:hover {
  background: rgba(var(--ink-rgb), 0.05);
  border-color: rgba(var(--ink-rgb), 0.1);
  transform: translateX(4px);
}

.folder-tree .tree-item:hover .tree-ic {
  color: var(--cotton);
  border-color: rgba(255, 90, 77, 0.3);
}

.folder-tree .tree-item:hover .tree-chev {
  opacity: 1;
  transform: none;
}

.folder-tree .tree-item.open {
  background: rgba(129, 1, 0, 0.2);
  border-color: rgba(255, 90, 77, 0.28);
}

.folder-tree .tree-item.open .tree-ic {
  border-color: transparent;
  color: var(--cotton);
  background: linear-gradient(150deg, #ff5a4d, #810100);
  box-shadow: 0 0 18px rgba(255, 90, 77, 0.4);
  animation: treeGlow 2.6s ease-in-out infinite;
}

.folder-tree .tree-item.open .tree-text strong {
  color: var(--cotton);
}

.folder-tree .tree-item.open .tree-chev {
  opacity: 1;
  transform: none;
  color: #ff7367;
}

@keyframes treeGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 90, 77, 0.3); }
  50% { box-shadow: 0 0 26px rgba(255, 90, 77, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .folder-tree .tree-item { animation: none; }
  .folder-tree .tree-item.open .tree-ic { animation: none; }
}

/* ===== Interactive system diagram + detail panel (workbench) ===== */
.sys2 {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  background:
    radial-gradient(circle at 50% 42%, rgba(129, 1, 0, 0.3), transparent 16rem),
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    #080707;
  background-size: auto, 40px 40px, 40px 40px, auto;
}

.sys2-stage {
  position: relative;
  min-height: 320px;
}

.sys2-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sys2-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.sys2-lines .line-base path {
  stroke: rgba(var(--ink-rgb), 0.14);
  stroke-width: 1.5;
}

.sys2-lines .line-flow path {
  stroke: rgba(var(--ink-rgb), 0.38);
  stroke-width: 1.6;
  stroke-dasharray: 3 13;
  animation: lineFlow 3s linear infinite;
}

.sys2-lines .line-flow path.on {
  stroke: #ff6a5d;
  stroke-width: 2.6;
  stroke-dasharray: 4 7;
  animation-duration: 1.05s;
  filter: drop-shadow(0 0 4px rgba(255, 90, 77, 0.65));
}

.sys2-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 90, 77, 0.4);
  background: linear-gradient(150deg, #c8160f, #810100 58%, #4d0807);
  color: var(--cotton);
  box-shadow: 0 0 52px rgba(129, 1, 0, 0.5);
}

.sys2-core svg {
  width: 30px;
  height: 30px;
}

.sys2-core strong {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: 0.02em;
}

.sys2-node {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  background: rgba(20, 16, 15, 0.92);
  color: rgba(var(--ink-rgb), 0.84);
  font-weight: 850;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(var(--shadow-rgb), 0.34);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.sys2-node .n-ic {
  display: grid;
  place-items: center;
}

.sys2-node .n-ic svg {
  width: 18px;
  height: 18px;
}

.sys2-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(255, 90, 77, 0.42);
  color: var(--cotton);
}

.sys2-node.active {
  border-color: transparent;
  background: linear-gradient(150deg, #ff5a4d, #810100);
  color: var(--cotton);
  transform: translate(-50%, -50%) scale(1.09);
  box-shadow: 0 0 26px rgba(255, 90, 77, 0.5), 0 16px 36px rgba(var(--shadow-rgb), 0.4);
  animation: nodePulse 2.4s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 90, 77, 0.4), 0 16px 36px rgba(var(--shadow-rgb), 0.4); }
  50% { box-shadow: 0 0 38px rgba(255, 90, 77, 0.72), 0 16px 36px rgba(var(--shadow-rgb), 0.4); }
}

.sys2-detail {
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
  background: rgba(8, 7, 7, 0.62);
  backdrop-filter: blur(6px);
  padding: 18px 22px;
  min-height: 152px;
}

.detail-card {
  opacity: 0;
  transform: translateY(10px);
}

.sys2-detail.show .detail-card {
  animation: detailIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes detailIn {
  to { opacity: 1; transform: none; }
}

.detail-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 77, 0.32);
  background: linear-gradient(150deg, rgba(255, 90, 77, 0.42), rgba(129, 1, 0, 0.3));
  color: #ff8478;
}

.detail-ic svg {
  width: 22px;
  height: 22px;
}

.detail-titles {
  flex: 1;
  min-width: 0;
}

.detail-titles h4 {
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.1;
}

.detail-about {
  margin-top: 4px;
  color: rgba(var(--ink-rgb), 0.7);
  font-size: 0.92rem;
}

.detail-badge {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.07);
  color: rgba(var(--ink-rgb), 0.6);
  font-size: 0.74rem;
  font-weight: 850;
}

.detail-how {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
}

.detail-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff8478;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detail-flag svg {
  width: 14px;
  height: 14px;
}

.detail-how p {
  margin-top: 8px;
  color: rgba(var(--ink-rgb), 0.84);
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .sys2-node {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .sys2-node strong { font-size: 0.8rem; }
  .sys2-core { min-width: 150px; padding: 13px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .sys2-lines .line-flow path,
  .sys2-node.active {
    animation: none;
  }
  .sys2-detail.show .detail-card { animation: none; opacity: 1; transform: none; }
}

/* ===== FAQ accordion ===== */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.04);
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}

.faq-item[open] {
  border-color: rgba(255, 90, 77, 0.28);
  background: rgba(129, 1, 0, 0.1);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--cotton);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #ff8478;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: #ff8478;
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.68;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.faq-item[open] .faq-answer {
  animation: faqReveal 0.36s ease both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary i,
  .faq-item[open] .faq-answer {
    transition: none;
    animation: none;
  }
}

/* ===== Home hero: centered single column (showcase moved to Services) ===== */
.hero-grid.hero-solo {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  text-align: center;
}

.hero-grid.hero-solo .hero-copy {
  max-width: 860px;
}

.hero-grid.hero-solo .hero-copy p.lead {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid.hero-solo .hero-actions,
.hero-grid.hero-solo .hero-trust {
  justify-content: center;
}

.hero-grid.hero-solo h1 {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Services hero: showcase tucked in the corner ===== */
.sch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.sch-grid .sch-copy h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.6rem);
  line-height: 1;
  max-width: 100%;
}

.services-showcase {
  width: 100%;
  align-self: start;
}

.services-showcase .showcase {
  box-shadow: 0 34px 90px rgba(var(--shadow-rgb), 0.45);
}

@media (max-width: 900px) {
  .sch-grid {
    grid-template-columns: 1fr;
  }
  .services-showcase {
    max-width: 520px;
  }
}

/* ===== Home hero constellation (interactive, floating + water cursor) ===== */
.constellation {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 56vh, 600px);
}

.constellation canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.constellation-logo {
  position: absolute;
  left: 78%;
  top: 50%;
  width: clamp(120px, 16vw, 188px);
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  filter: none;
  animation: constLogoFloat 7s ease-in-out infinite;
}

@keyframes constLogoFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@media (max-width: 900px) {
  .constellation { min-height: 360px; }
  .constellation-logo { left: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  .constellation-logo { animation: none; }
}

/* ===== Hob AI dashboard ===== */
.hob-dashboard-page {
  --hob-black: #060606;
  --hob-ink: #0d0d0f;
  --hob-panel: #141416;
  --hob-panel-2: #1b1718;
  --hob-red: #ff2b2b;
  --hob-red-deep: #8f0000;
  --hob-cream: #f2eeee;
  --hob-muted: rgba(242, 238, 238, 0.66);
  --hob-line: rgba(242, 238, 238, 0.11);
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 4%, rgba(255, 43, 43, 0.24), transparent 25rem),
    radial-gradient(circle at 12% 30%, rgba(143, 0, 0, 0.24), transparent 22rem),
    linear-gradient(135deg, #030303, #101010 45%, #080606);
  color: var(--hob-cream);
  overflow-x: hidden;
}

.hob-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 238, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 238, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}

.hob-dashboard-page #site-nav,
.hob-dashboard-page #site-footer {
  display: none;
}

.hob-dashboard-page main {
  display: block;
}

.hob-app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  width: min(1600px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px);
}

.hob-sidebar,
.hob-topbar,
.hob-hero,
.hob-kpi-grid article,
.hob-panel {
  border: 1px solid var(--hob-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 11, 0.88);
  box-shadow: 0 28px 80px rgba(var(--shadow-rgb), 0.38);
  backdrop-filter: blur(18px);
}

.hob-sidebar {
  position: sticky;
  top: clamp(14px, 2vw, 26px);
  height: calc(100svh - clamp(28px, 4vw, 52px));
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px;
  border-radius: 8px;
}

.hob-mark {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--hob-cream);
  text-decoration: none;
}

.hob-mark-orb,
.hob-core {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, var(--hob-red), var(--hob-red-deep) 58%, #260000);
  box-shadow: 0 0 34px rgba(255, 43, 43, 0.22);
}

.hob-mark-orb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.hob-mark img,
.hob-core img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hob-mark strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1;
}

.hob-mark small,
.hob-user small,
.hob-side-card p,
.hob-hero p,
.hob-kpi-grid span,
.hob-kpi-grid small,
.panel-head span,
.agent-list small,
.approval-card p,
.activity-feed span,
.model-meters span {
  color: var(--hob-muted);
}

.hob-side-nav {
  display: grid;
  gap: 8px;
}

.hob-side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(242, 238, 238, 0.78);
  text-decoration: none;
  font-weight: 850;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hob-side-nav a:hover,
.hob-side-nav a.active {
  border-color: rgba(255, 43, 43, 0.32);
  background: rgba(255, 43, 43, 0.12);
  color: var(--hob-cream);
  transform: translateX(2px);
}

.hob-side-nav svg,
.hob-top-actions svg,
.panel-head svg,
.hob-command-row svg,
.hob-kpi-grid svg {
  width: 18px;
  height: 18px;
}

.hob-side-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 43, 43, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 43, 43, 0.16), rgba(255, 43, 43, 0.035));
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4f4f;
  box-shadow: 0 0 18px rgba(255, 43, 43, 0.86);
}

.hob-side-card p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hob-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px;
  border-radius: 8px;
}

.hob-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(242, 238, 238, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--hob-muted);
}

.hob-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hob-cream);
  font: inherit;
}

.hob-search input::placeholder {
  color: rgba(242, 238, 238, 0.42);
}

.hob-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hob-top-actions button,
.panel-head button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 238, 238, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--hob-cream);
  cursor: pointer;
}

.hob-top-actions button:hover,
.panel-head button:hover,
.hob-command-row button:hover,
.approval-card button:hover {
  border-color: rgba(255, 43, 43, 0.48);
  background: rgba(255, 43, 43, 0.16);
}

.hob-top-actions button span {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hob-red);
}

.hob-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 43, 43, 0.26);
  border-radius: 7px;
  background: rgba(255, 43, 43, 0.09);
  color: var(--hob-cream);
  text-decoration: none;
}

.hob-user strong,
.hob-user small {
  display: block;
  line-height: 1.1;
}

.hob-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: stretch;
  min-height: 390px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 8px;
  overflow: hidden;
}

.hob-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hob-kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 43, 43, 0.34);
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.1);
  color: #ff8f8f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hob-hero h1 {
  margin: 0;
  color: var(--hob-cream);
  font-size: clamp(4.4rem, 11vw, 10rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.hob-hero p:not(.hob-kicker) {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.58;
}

.hob-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hob-command-row button,
.approval-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(242, 238, 238, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hob-cream);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.hob-command-row button:first-child,
.approval-card button:first-child {
  border-color: rgba(255, 43, 43, 0.44);
  background: linear-gradient(135deg, var(--hob-red), var(--hob-red-deep));
}

.hob-orbit-panel {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(255, 43, 43, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 43, 43, 0.18), transparent 10rem),
    linear-gradient(rgba(242, 238, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 238, 0.05) 1px, transparent 1px),
    rgba(0, 0, 0, 0.32);
  background-size: auto, 36px 36px, 36px 36px, auto;
  overflow: hidden;
}

.hob-orbit-panel::before,
.hob-orbit-panel::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 43, 43, 0.2);
  border-radius: 50%;
}

.hob-orbit-panel::after {
  inset: 27%;
  border-color: rgba(242, 238, 238, 0.14);
}

.hob-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
}

.hob-core strong,
.hob-core span {
  line-height: 1;
}

.hob-core strong {
  margin-top: 4px;
  font-size: 1.3rem;
}

.hob-core span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 850;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(242, 238, 238, 0.14);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  color: var(--hob-cream);
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(var(--shadow-rgb), 0.36);
}

.orbit-node svg {
  width: 16px;
  height: 16px;
  color: #ff6a6a;
}

.node-a { left: 10%; top: 18%; }
.node-b { right: 10%; top: 24%; }
.node-c { left: 13%; bottom: 20%; }
.node-d { right: 12%; bottom: 16%; }

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

.hob-kpi-grid article,
.hob-panel {
  border-radius: 8px;
}

.hob-kpi-grid article {
  min-height: 138px;
  padding: 18px;
}

.hob-kpi-grid strong {
  display: block;
  margin: 12px 0;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 0.95;
}

.hob-kpi-grid small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
}

.hob-kpi-grid small svg {
  color: #ff5f5f;
}

.hob-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.hob-panel {
  min-width: 0;
  padding: 18px;
}

.hob-performance {
  min-height: 430px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 5px 0 0;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.panel-head button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.hob-chart {
  height: 270px;
  border: 1px solid rgba(242, 238, 238, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.05), rgba(0, 0, 0, 0.24));
  overflow: hidden;
}

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

.chart-grid {
  fill: none;
  stroke: rgba(242, 238, 238, 0.08);
  stroke-width: 1;
}

.chart-area {
  fill: url(#hobArea);
}

.chart-line {
  fill: none;
  stroke: #ff3d3d;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 43, 43, 0.55));
}

.hob-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 15px;
  color: var(--hob-muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.hob-chart-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hob-chart-meta b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hob-red);
}

.hob-agent-panel,
.hob-model-health,
.hob-approval,
.hob-activity {
  min-height: 260px;
}

.agent-list,
.activity-feed,
.model-meters {
  display: grid;
  gap: 10px;
}

.agent-list div {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(242, 238, 238, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.agent-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: rgba(255, 43, 43, 0.14);
  color: #ff7272;
}

.agent-list svg {
  width: 20px;
  height: 20px;
}

.agent-list strong,
.agent-list small {
  display: block;
  line-height: 1.25;
}

.agent-list b {
  color: #ff7272;
  font-size: 0.86rem;
}

.model-meters p {
  display: grid;
  grid-template-columns: 90px minmax(90px, 1fr) 58px;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.model-meters b {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hob-red), #ff8c8c);
  box-shadow: inset calc((100% - var(--w)) * -1) 0 0 rgba(255, 255, 255, 0.08);
  clip-path: inset(0 calc(100% - var(--w)) 0 0 round 999px);
}

.model-meters strong {
  text-align: right;
  font-size: 0.9rem;
}

.approval-card {
  padding: 16px;
  border: 1px solid rgba(255, 43, 43, 0.26);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 43, 43, 0.14), rgba(255, 43, 43, 0.04));
}

.risk-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.18);
  color: #ff8d8d;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-card h3 {
  margin: 14px 0 8px;
  font-size: 1.34rem;
}

.approval-card div {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.approval-card button {
  flex: 1;
}

.activity-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-feed li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(242, 238, 238, 0.08);
}

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

.activity-feed time {
  color: #ff7777;
  font-weight: 850;
}

@media (max-width: 1120px) {
  .hob-app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hob-sidebar {
    align-items: center;
    padding: 14px 10px;
  }

  .hob-mark {
    display: block;
  }

  .hob-mark span:last-child,
  .hob-side-nav span,
  .hob-side-card {
    display: none;
  }

  .hob-side-nav a {
    justify-content: center;
    width: 54px;
    padding: 0;
  }

  .hob-hero,
  .hob-dashboard-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hob-app-shell {
    display: block;
    padding: 10px;
  }

  .hob-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
    overflow-x: auto;
  }

  .hob-side-nav {
    display: flex;
  }

  .hob-workspace {
    gap: 10px;
  }

  .hob-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hob-top-actions {
    justify-content: space-between;
  }

  .hob-user {
    flex: 1;
  }

  .hob-hero {
    min-height: auto;
    padding: 20px;
  }

  .hob-hero h1 {
    font-size: clamp(4rem, 18vw, 6.8rem);
  }

  .hob-orbit-panel {
    min-height: 280px;
  }

  .hob-kpi-grid,
  .hob-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hob-kpi-grid article {
    min-height: 116px;
  }

  .hob-search {
    min-width: 0;
  }

  .model-meters p {
    grid-template-columns: 78px minmax(80px, 1fr) 52px;
  }
}

@media (max-width: 440px) {
  .hob-top-actions button {
    width: 44px;
    height: 44px;
  }

  .hob-user span {
    display: none;
  }

  .hob-command-row,
  .approval-card div {
    display: grid;
  }

  .orbit-node {
    font-size: 0;
    min-width: 42px;
    justify-content: center;
    padding: 0;
  }
}

/* ============================================================
   MOBILE VERSION — appended last so it wins the cascade.
   Covers nav (hamburger), hero, constellation, grids, type.
   ============================================================ */

/* Hamburger button is hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.04);
  color: rgb(var(--ink-rgb));
  cursor: pointer;
  flex: none;
}
.nav-toggle:hover { background: rgba(var(--ink-rgb), 0.09); }
.nav-toggle i { width: 22px; height: 22px; }

@media (max-width: 900px) {
  /* --- Navigation: brand left, hamburger right, links as dropdown --- */
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid rgba(var(--ink-rgb), 0.12);
    border-radius: 16px;
    background: rgba(18, 12, 12, 0.92);
    /* collapsed by default */
    display: none;
  }
  .site-header.nav-open .nav-links { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.02rem;
  }
  .nav-links a:hover { background: rgba(var(--ink-rgb), 0.07); }
  .nav-links .nav-join {
    justify-content: center;
    margin-top: 4px;
  }

  /* --- Hero: force single column (overrides earlier 2-col base) --- */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    text-align: left;
  }
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .hero-copy, .hero-copy p { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero-actions { flex-wrap: wrap; }

  /* --- Constellation: comfortable height, centered --- */
  .constellation {
    min-height: 340px;
    width: 100%;
    order: 2;
  }
  .constellation-logo { left: 72%; width: clamp(108px, 30vw, 150px); }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(2.3rem, 12vw, 3.2rem); }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }

  .constellation { min-height: 300px; }
  .constellation-logo { left: 74%; }

  /* Tap targets and spacing */
  .nav-links a { padding: 13px 14px; }

  /* Footer columns already stack via 1fr; tighten spacing */
  .footer-inner { gap: 26px; }
}

/* ============================================================
   FX CINEMATIC RESTYLE (home) — dark long-scroll, red primary
   glow + subtle green secondary, animated ambient backdrop,
   scroll reveals, glow cards, brand-story timeline.
   Appended last so it wins the cascade.
   ============================================================ */

:root {
  --fx-green: #f3f1ea;
  --fx-green-soft: rgba(var(--ink-rgb), 0.5);
  --fx-red-glow: rgba(199, 24, 18, 0.55);
}

/* Keep real content above the ambient backdrop */
.fx-cinematic #site-nav,
.fx-cinematic main,
.fx-cinematic #site-footer { position: relative; z-index: 1; }

/* ---- Ambient animated backdrop ---- */
.fx-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--fx-base, #0b0707);
}
.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.fx-glow-red {
  width: 60vw; height: 60vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, var(--fx-red-glow), transparent 62%);
  animation: fxDriftA 26s ease-in-out infinite;
}
.fx-glow-green {
  width: 42vw; height: 42vw;
  bottom: -14vw; right: -8vw;
  background: radial-gradient(circle, rgba(var(--ink-rgb), 0.22), transparent 62%);
  opacity: 0.4;
  animation: fxDriftB 32s ease-in-out infinite;
}
.fx-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 1px, transparent 1px);
  background-size: 58px 58px, 58px 58px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  animation: fxGridPan 40s linear infinite;
  opacity: 0.6;
}
.fx-streams {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(237,235,222,0.5), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(237,235,222,0.45), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,120,110,0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, rgba(237,235,222,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(237,235,222,0.4), transparent);
  background-repeat: no-repeat;
  animation: fxFloat 18s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes fxDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vw) scale(1.12); }
}
@keyframes fxDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, -5vw) scale(1.15); }
}
@keyframes fxGridPan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 58px 58px, 58px 58px; }
}
@keyframes fxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

/* Make existing sections sit on the cinematic backdrop, not opaque slabs */
.fx-cinematic .band,
.fx-cinematic .band.white,
.fx-cinematic .hero { background: transparent; }
.fx-cinematic .why-candoura {
  background:
    radial-gradient(circle at 12% -10%, rgba(199, 24, 18, 0.4), transparent 44%),
    radial-gradient(circle at 92% 116%, rgba(var(--ink-rgb), 0.16), transparent 48%);
  border-color: rgba(var(--ink-rgb), 0.08);
}

/* ---- Secondary highlight — brand red (visible in both light & dark) ---- */
.hl-g {
  background: linear-gradient(120deg, #ff5a4d, #c81e14 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e23b34;
}

/* ---- Scroll reveal (extends existing reveal-on-scroll) ---- */
.fx-story-head.reveal-on-scroll,
.fx-node.reveal-on-scroll,
.why-card.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0ms);
}
.fx-story-head.is-visible,
.fx-node.is-visible,
.why-card.is-visible { opacity: 1; transform: none; }

/* ---- Why-Candoura: cinematic glow cards ---- */
.fx-cinematic .why-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.015));
  overflow: hidden;
}
.fx-cinematic .why-card::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: 150%; height: 150%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, rgba(199, 24, 18, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.fx-cinematic .why-card:nth-child(2)::before,
.fx-cinematic .why-card:nth-child(4)::before {
  background: radial-gradient(circle at 50% 0%, rgba(var(--ink-rgb), 0.26), transparent 60%);
}
.fx-cinematic .why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 120, 110, 0.4);
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.07), rgba(var(--ink-rgb), 0.02));
}
.fx-cinematic .why-card:hover::before { opacity: 1; }
.fx-cinematic .why-icon {
  box-shadow: 0 0 24px rgba(199, 24, 18, 0.4);
}
.fx-cinematic .why-card:nth-child(2) .why-icon,
.fx-cinematic .why-card:nth-child(4) .why-icon {
  border-color: rgba(255, 90, 77, 0.28);
  background: linear-gradient(150deg, rgba(129, 1, 0, 0.55), rgba(99, 1, 2, 0.3));
  color: #ff8478;
  box-shadow: 0 0 24px rgba(199, 24, 18, 0.4);
}

/* ---- Brand-story timeline section ---- */
.fx-story {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 24px;
  border-top: 1px solid var(--line);
}
.fx-story .section-inner { position: relative; }
.fx-story-head { max-width: 760px; }
.fx-story-head h2 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.fx-story-head .lead { margin-top: 18px; max-width: 620px; }

.fx-timeline {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  height: 340px;
}
.fx-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ink-rgb), 0.5) 20%, rgba(255, 120, 110, 0.5) 80%, transparent);
}
.fx-track::after {
  content: "";
  position: absolute;
  inset: -40px 0 -40px 0;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.05) 1px, transparent 1px);
  background-size: 48px 28px;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}
.fx-milestones {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fx-node {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 230px;
}
.fx-stem {
  position: absolute;
  left: 26px; bottom: 0;
  width: 1px; height: var(--h, 60%);
  background: linear-gradient(to top, rgba(255, 120, 110, 0.6), rgba(var(--ink-rgb), 0.15));
}
.fx-dot {
  position: absolute;
  left: 26px; bottom: var(--h, 60%);
  width: 13px; height: 13px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: #ff786e;
  box-shadow: 0 0 0 4px rgba(255, 120, 110, 0.16), 0 0 22px 4px rgba(199, 24, 18, 0.5);
  animation: fxPulse 3.4s ease-in-out infinite;
}
@keyframes fxPulse {
  0%, 100% { transform: translate(-50%, 50%) scale(1); }
  50% { transform: translate(-50%, 50%) scale(1.22); }
}
.fx-label {
  position: absolute;
  left: 48px;
  bottom: calc(var(--h, 60%) - 6px);
  width: calc(100% - 56px);
}
.fx-label strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #ff5a4d, #c81e14 75%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: #e23b34;
}
.fx-label span {
  display: block;
  margin-top: 6px;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .fx-timeline { height: auto; }
  .fx-track { display: none; }
  .fx-milestones {
    position: static;
    grid-template-columns: 1fr;
    gap: 22px;
    border-left: 1px solid rgba(var(--ink-rgb), 0.14);
    padding-left: 26px;
  }
  .fx-node { max-width: 100%; }
  .fx-stem { display: none; }
  .fx-dot {
    left: -26px; bottom: auto; top: 6px;
    transform: none;
    animation: fxPulseM 3.4s ease-in-out infinite;
  }
  .fx-node:nth-child(odd) .fx-dot,
  .fx-node .fx-dot { transform: none; }
  @keyframes fxPulseM { 0%,100%{transform:scale(1)} 50%{transform:scale(1.22)} }
  .fx-label {
    position: static;
    width: 100%;
  }
  .fx-label strong { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-glow, .fx-grid, .fx-streams, .fx-dot { animation: none; }
}

/* ============================================================
   FX GLASSMORPHISM + PARALLAX (home) — appended last.
   ============================================================ */

/* Generic parallax transform (JS sets --parallax-y per element) */
.fx-cinematic [data-parallax] {
  transform: translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
  will-change: transform;
}

/* ---- Ghost background type that drifts on scroll (parallax) ---- */
.fx-ghost {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.8;
  font-size: clamp(7rem, 22vw, 20rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.07);
  text-stroke: 1px rgba(var(--ink-rgb), 0.07);
  user-select: none;
  white-space: nowrap;
}
.fx-ghost-left { top: 8%; left: -2%; }
.fx-ghost-right {
  top: 2%; right: -1%;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.1);
  text-stroke: 1px rgba(var(--ink-rgb), 0.1);
}
.build-showcase, .fx-story { position: relative; overflow: hidden; }
.build-showcase .section-inner, .fx-story .section-inner { position: relative; z-index: 1; }

/* ---- Glassmorphism system ---- */
/* Frosted, translucent nav bar */
.fx-cinematic .site-header {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
}

/* Shared glass surface for cards/panels on the home page */
.fx-cinematic .why-card,
.fx-cinematic .folder-window,
.fx-cinematic .folder-sidebar,
.fx-cinematic .article-card,
.fx-cinematic .build-option {
  background: rgba(var(--ink-rgb), 0.055);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.12), 0 22px 60px rgba(var(--shadow-rgb), 0.38);
}
.fx-cinematic .folder-sidebar {
  border-radius: 0;
  box-shadow: none;
}
/* Active service pill reads as lit glass */
.fx-cinematic .build-option.active {
  background: linear-gradient(150deg, rgba(199, 24, 18, 0.32), rgba(var(--ink-rgb), 0.05));
  border-color: rgba(255, 120, 110, 0.4);
}
/* Glass nav dropdown on mobile already uses translucent bg — add blur */
@media (max-width: 900px) {
  .fx-cinematic .nav-links {
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
}

@media (max-width: 760px) {
  .fx-ghost { font-size: clamp(5rem, 30vw, 9rem); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-cinematic [data-parallax] { transform: none; }
}

/* ============================================================
   FX MOTION — word / character reveals, image reveals,
   article-card entrance + hover. Site-wide. Appended last.
   ============================================================ */

/* ---- Word / character reveal (JS splits headings into .fx-w) ---- */
.fx-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(1.5deg);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: transform, opacity;
}
.fx-w.sp { width: 0.28em; }              /* preserved spaces */
.fx-words.is-visible .fx-w,
.fx-words.fx-animated .fx-w {
  opacity: 1;
  transform: none;
}

/* ---- Image reveal (clip + zoom in on scroll) ---- */
.fx-img-reveal {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition: clip-path 0.9s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: clip-path, transform;
}
.fx-img-reveal.is-visible {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* ---- Article cards: entrance + lively hover ---- */
.fx-cinematic .article-card {
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.fx-cinematic .article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 120, 110, 0.45);
  box-shadow: inset 0 1px 0 rgba(237,235,222,0.16), 0 30px 70px rgba(0,0,0,0.5), 0 0 40px rgba(199,24,18,0.18);
}
/* zoom the card's preview art on hover */
.fx-cinematic .article-card .scene,
.fx-cinematic .article-card .blog-canvas,
.fx-cinematic .article-card img {
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.fx-cinematic .article-card:hover .scene,
.fx-cinematic .article-card:hover .blog-canvas,
.fx-cinematic .article-card:hover img {
  transform: scale(1.05);
}
/* tags pop slightly on hover */
.fx-cinematic .article-card:hover .scene-tag,
.fx-cinematic .article-card:hover .tree-item {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .fx-w { opacity: 1; transform: none; transition: none; }
  .fx-img-reveal { clip-path: none; transform: none; transition: none; }
  .fx-cinematic .article-card:hover { transform: none; }
}

/* ============================================================
   CENTERED CINEMATIC HERO (home) — glowing headline + floating
   tech symbols + top spotlight, red/white on black.
   ============================================================ */
.hero-center {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 24px 70px;
}
/* volumetric light beam from the top */
.hero-spot {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 90vw;
  height: 80%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255, 120, 110, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 50% at 50% 0%, rgba(var(--ink-rgb), 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-center-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 22px;
  color: rgba(var(--ink-rgb), 0.72);
  letter-spacing: 0.18em;
}
.hero-glow {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow:
    0 0 24px rgba(var(--ink-rgb), 0.28),
    0 0 60px rgba(199, 24, 18, 0.35),
    0 0 110px rgba(199, 24, 18, 0.22);
  animation: heroGlowPulse 5.5s ease-in-out infinite;
}
.hero-glow .hl {
  -webkit-text-fill-color: transparent;
}
@keyframes heroGlowPulse {
  0%, 100% { text-shadow: 0 0 22px rgba(237,235,222,0.18), 0 0 55px rgba(199,24,18,0.22); }
  50% { text-shadow: 0 0 26px rgba(237,235,222,0.24), 0 0 70px rgba(199,24,18,0.3); }
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 600px;
  color: rgba(var(--ink-rgb), 0.7);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  color: rgba(var(--ink-rgb), 0.86);
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-chips i { width: 15px; height: 15px; color: #ff8478; }
.hero-actions-center {
  justify-content: center;
  margin-top: 32px;
}
.hero-scroll {
  position: absolute;
  bottom: 26px;
  right: 30px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.55);
  text-decoration: none;
}
.hero-scroll i { width: 16px; height: 16px; animation: heroScrollBob 1.8s ease-in-out infinite; }
@keyframes heroScrollBob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* ---- Floating tech symbols (JS-populated) ---- */
.hero-symbols {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-symbols .sym {
  position: absolute;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: rgba(var(--ink-rgb), 0.16);
  white-space: nowrap;
  animation: symFloat var(--d, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-symbols .sym.boxed {
  padding: 6px 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 10px;
  color: rgba(var(--ink-rgb), 0.22);
}
.hero-symbols .sym.accent { color: rgba(255, 120, 110, 0.32); }
@keyframes symFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); opacity: var(--o, 0.5); }
  50% { transform: translateY(-18px) rotate(var(--r, 0deg)); opacity: 1; }
}

@media (max-width: 760px) {
  .hero-center { min-height: 86vh; padding-top: 60px; }
  .hero-glow { font-size: clamp(2.4rem, 11vw, 3.6rem); max-width: 16ch; }
  .hero-symbols .sym { font-size: 0.8em; }
  .hero-scroll { left: 50%; right: auto; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-symbols .sym, .hero-scroll i { animation: none; }
}

/* ============================================================
   SERVICE PROGRAM CARDS (services page) — FXology-style:
   glowing outlined number, particle glow, "Learn more".
   ============================================================ */
.svc-grid { gap: 18px; }
.svc-grid .svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.015));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.1);
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.svc-glow {
  position: absolute;
  top: -35%;
  right: -15%;
  width: 75%;
  height: 130%;
  background: radial-gradient(circle at 65% 30%, rgba(199, 24, 18, 0.45), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.svc-num {
  position: absolute;
  top: 6px;
  right: 20px;
  font-size: 7.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 120, 110, 0.3);
  text-stroke: 1.5px rgba(255, 120, 110, 0.3);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.45s ease;
}
/* orbiting particle accents around the number */
.svc-num::before,
.svc-num::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8478;
  box-shadow: 0 0 14px 3px rgba(199, 24, 18, 0.75);
}
.svc-num::before { top: 28%; left: 8%; animation: svcOrbit 6s linear infinite; }
.svc-num::after { bottom: 22%; right: 14%; width: 5px; height: 5px; animation: svcOrbit 8s linear infinite reverse; }
@keyframes svcOrbit {
  0%   { transform: translate(0, 0); opacity: 0.4; }
  25%  { transform: translate(14px, -10px); opacity: 1; }
  50%  { transform: translate(4px, -22px); opacity: 0.6; }
  75%  { transform: translate(-12px, -10px); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0.4; }
}
.svc-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}
.svc-card h3 { font-size: 1.22rem; }
.svc-card p {
  margin-top: 10px;
  max-width: 92%;
  color: rgba(var(--ink-rgb), 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}
.svc-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, rgba(199, 24, 18, 0.55), rgba(99, 1, 2, 0.32));
  border: 1px solid rgba(255, 120, 110, 0.42);
  transition: gap 0.25s ease, background 0.25s ease;
}
.svc-more i { width: 15px; height: 15px; }
.svc-more:hover { gap: 13px; background: linear-gradient(120deg, rgba(199, 24, 18, 0.75), rgba(99, 1, 2, 0.45)); }
.svc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 120, 110, 0.45);
  box-shadow: inset 0 1px 0 rgba(237,235,222,0.16), 0 32px 70px rgba(var(--shadow-rgb), 0.5), 0 0 55px rgba(199, 24, 18, 0.22);
}
.svc-card:hover .svc-glow { opacity: 0.95; }
.svc-card:hover .svc-num {
  -webkit-text-stroke-color: rgba(255, 120, 110, 0.6);
  text-stroke-color: rgba(255, 120, 110, 0.6);
}
@media (max-width: 760px) {
  .svc-num { font-size: 6rem; }
  .svc-card { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-num::before, .svc-num::after { animation: none; }
  .svc-card:hover { transform: none; }
}

/* Inner-page heroes/sections sit on the cinematic backdrop site-wide */
.fx-cinematic .page-hero,
.fx-cinematic .band.white,
.fx-cinematic .band { background: transparent; }
/* keep generic content cards readable as light glass */
.fx-cinematic main .card {
  background: rgba(var(--ink-rgb), 0.05);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
}

/* ============================================================
   PROGRAM-CARD NUMBERS for all card grids (site-wide).
   CSS counters add 01..N; big outlined glowing number watermark
   behind content. Works for JS-rendered blog/review cards too.
   ============================================================ */
.fx-cinematic .service-columns { counter-reset: progcard; }

.fx-cinematic .service-columns > article {
  counter-increment: progcard;
  position: relative;
  overflow: hidden;
}
/* lift real content above the number watermark */
.fx-cinematic .service-columns > article > * { position: relative; z-index: 1; }

/* the big outlined glowing number */
.fx-cinematic .service-columns > article::after {
  content: counter(progcard, decimal-leading-zero);
  position: absolute;
  top: -6px;
  right: 16px;
  z-index: 0;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255, 120, 110, 0.22);
  text-stroke: 1.3px rgba(255, 120, 110, 0.22);
  text-shadow: 0 0 34px rgba(199, 24, 18, 0.22);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.4s ease, text-shadow 0.4s ease;
}
.fx-cinematic .service-columns > article:hover::after {
  -webkit-text-stroke-color: rgba(255, 120, 110, 0.5);
  text-stroke-color: rgba(255, 120, 110, 0.5);
  text-shadow: 0 0 44px rgba(199, 24, 18, 0.4);
}

/* service-columns + team + review cards: hover lift to match program cards */
.fx-cinematic .service-columns > article,
.fx-cinematic .team-grid .team-member,
.fx-cinematic .review-grid .review-card {
  border-radius: 18px;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.fx-cinematic .service-columns > article:hover,
.fx-cinematic .team-grid .team-member:hover,
.fx-cinematic .review-grid .review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 120, 110, 0.4);
  box-shadow: inset 0 1px 0 rgba(237,235,222,0.14), 0 28px 64px rgba(0,0,0,0.46), 0 0 46px rgba(199,24,18,0.18);
}

/* Blog/article cards: number as a glassy corner badge over the art */
.fx-cinematic .article-list { counter-reset: progcard; }
.fx-cinematic .article-list .article-card {
  counter-increment: progcard;
  position: relative;
}
.fx-cinematic .article-list .article-card::after {
  content: counter(progcard, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd9d4;
  background: rgba(20, 10, 10, 0.5);
  border: 1px solid rgba(255, 120, 110, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(199, 24, 18, 0.35);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-cinematic .service-columns > article:hover,
  .fx-cinematic .team-grid .team-member:hover,
  .fx-cinematic .review-grid .review-card:hover { transform: none; }
}

/* ============================================================
   FX MOTION v2 — character morphism, swift page motion,
   blur-in section reveals. Site-wide. Appended last.
   ============================================================ */

/* keep words intact while characters morph in */
.fx-words .fx-word { display: inline-block; }
.fx-c {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.32em) scale(0.96);
  --d: calc(var(--i, 0) * 22ms);
  transition:
    opacity 0.5s ease var(--d, 0ms),
    filter 0.55s ease var(--d, 0ms),
    transform 0.6s cubic-bezier(.22,.61,.36,1) var(--d, 0ms);
  will-change: opacity, filter, transform;
}
.fx-words.is-visible .fx-c,
.fx-words.fx-animated .fx-c {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* swift page motion: smooth anchored scrolling */
html { scroll-behavior: smooth; }

/* cinematic blur-in for section/card reveals (extends reveal-on-scroll) */
.fx-cinematic .reveal-on-scroll {
  filter: blur(8px);
  transition:
    opacity 0.8s ease var(--reveal-delay, 0ms),
    transform 0.85s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0ms),
    filter 0.8s ease var(--reveal-delay, 0ms);
}
.fx-cinematic .reveal-on-scroll.is-visible { filter: blur(0); }

/* card grids: slightly richer entrance (scale + blur via reveal) */
.fx-cinematic .card.reveal-on-scroll,
.fx-cinematic .article-card.reveal-on-scroll,
.fx-cinematic .why-card.reveal-on-scroll {
  transform: translateY(28px) scale(0.975);
}
.fx-cinematic .card.reveal-on-scroll.is-visible,
.fx-cinematic .article-card.reveal-on-scroll.is-visible,
.fx-cinematic .why-card.reveal-on-scroll.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-c { opacity: 1; filter: none; transform: none; transition: none; }
  .fx-cinematic .reveal-on-scroll { filter: none; }
}

/* build-picker now has 5 services (added IT & cloud) — flow to fit */
.fx-cinematic .build-picker { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 900px) { .fx-cinematic .build-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   SERVICES HERO — circuit/node hub (BitForge-style, in red)
   ============================================================ */
.svc-hub {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 40vw, 480px);
}
.svc-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-line-base path { fill: none; stroke: rgba(var(--ink-rgb), 0.14); stroke-width: 1.4; }
.hub-line-flow path {
  fill: none;
  stroke: rgba(255, 120, 110, 0.85);
  stroke-width: 1.6;
  stroke-dasharray: 5 230;
  filter: drop-shadow(0 0 5px rgba(199, 24, 18, 0.8));
  animation: hubFlow 3.2s linear infinite;
}
@keyframes hubFlow { to { stroke-dashoffset: -235; } }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 124px; height: 124px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(199, 24, 18, 0.5), rgba(99, 1, 2, 0.25));
  border: 1px solid rgba(255, 120, 110, 0.5);
  box-shadow: 0 0 55px rgba(199, 24, 18, 0.5), inset 0 1px 0 rgba(237,235,222,0.18);
  backdrop-filter: blur(6px);
  animation: hubCorePulse 4s ease-in-out infinite;
}
.hub-core img { width: 48px; height: 48px; }
.hub-core b { font-size: 0.82rem; letter-spacing: 0.04em; color: #fff; }
@keyframes hubCorePulse {
  0%,100% { box-shadow: 0 0 45px rgba(199,24,18,0.45), inset 0 1px 0 rgba(237,235,222,0.18); }
  50% { box-shadow: 0 0 70px rgba(199,24,18,0.65), inset 0 1px 0 rgba(237,235,222,0.18); }
}
.hub-sat {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 2;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(237,235,222,0.12);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub-sat i { width: 24px; height: 24px; color: #ff8478; }
@keyframes hubFloat {
  0%,100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 9px)); }
}
.hub-stat {
  position: absolute; z-index: 4;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 12, 12, 0.62);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 44px rgba(var(--shadow-rgb), 0.42);
}
.hub-stat span { display: block; font-size: 0.66rem; color: rgba(237,235,222,0.6); text-transform: uppercase; letter-spacing: 0.12em; }
.hub-stat strong { font-size: 1.02rem; color: #f4f2ea; }
.hub-stat-a { top: 4%; left: -3%; }
.hub-stat-b { bottom: 4%; right: -3%; }
@media (max-width: 900px) {
  .svc-hub { min-height: 380px; max-width: 460px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-line-flow path, .hub-core, .hub-sat { animation: none; }
}

/* ============================================================
   BLOG — bento grid arrangement (varied card widths)
   ============================================================ */
body[data-page="blog"] .article-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 18px;
}
body[data-page="blog"] .article-list .article-card { grid-column: span 2; min-height: 440px; }
/* bento rhythm: (4+2) (2+4) (3+3) repeating */
body[data-page="blog"] .article-list .article-card:nth-child(6n+1) { grid-column: span 4; min-height: 480px; }
body[data-page="blog"] .article-list .article-card:nth-child(6n+4) { grid-column: span 4; min-height: 480px; }
body[data-page="blog"] .article-list .article-card:nth-child(6n+5) { grid-column: span 3; }
body[data-page="blog"] .article-list .article-card:nth-child(6n+6) { grid-column: span 3; }

@media (max-width: 900px) {
  body[data-page="blog"] .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="blog"] .article-list .article-card,
  body[data-page="blog"] .article-list .article-card:nth-child(6n+1),
  body[data-page="blog"] .article-list .article-card:nth-child(6n+4),
  body[data-page="blog"] .article-list .article-card:nth-child(6n+5),
  body[data-page="blog"] .article-list .article-card:nth-child(6n+6) { grid-column: span 1; min-height: 420px; }
}
@media (max-width: 560px) {
  body[data-page="blog"] .article-list { grid-template-columns: 1fr; }
}

/* ============================================================
   WHAT WE BUILD — dashboard framing (RichPath-style, red):
   CTAs + glow behind the window + "built with" stack strip
   ============================================================ */
.build-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 28px; }
.build-window-framed { position: relative; }
.build-window-framed::before {
  content: "";
  position: absolute;
  left: 50%; top: -70px;
  width: 78%; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(199, 24, 18, 0.32), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}
.build-window-framed > * { position: relative; z-index: 1; }
.stack-strip {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
  text-align: center;
}
.stack-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.5);
  margin-bottom: 18px;
}
.stack-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
}
.stack-logos span {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(var(--ink-rgb), 0.42);
  transition: color 0.25s ease, transform 0.25s ease;
}
.stack-logos span:hover { color: rgba(var(--ink-rgb), 0.85); transform: translateY(-2px); }

/* ============================================================
   HOME — bento grid for the "From the blog" article list (6 cards)
   ============================================================ */
body[data-page="home"] .article-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 18px;
}
body[data-page="home"] .article-list .article-card { grid-column: span 2; min-height: 440px; }
body[data-page="home"] .article-list .article-card:nth-child(6n+1) { grid-column: span 4; min-height: 480px; }
body[data-page="home"] .article-list .article-card:nth-child(6n+4) { grid-column: span 4; min-height: 480px; }
body[data-page="home"] .article-list .article-card:nth-child(6n+5) { grid-column: span 3; }
body[data-page="home"] .article-list .article-card:nth-child(6n+6) { grid-column: span 3; }

@media (max-width: 900px) {
  body[data-page="home"] .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .article-list .article-card,
  body[data-page="home"] .article-list .article-card:nth-child(6n+1),
  body[data-page="home"] .article-list .article-card:nth-child(6n+4),
  body[data-page="home"] .article-list .article-card:nth-child(6n+5),
  body[data-page="home"] .article-list .article-card:nth-child(6n+6) { grid-column: span 1; min-height: 420px; }
}
@media (max-width: 560px) {
  body[data-page="home"] .article-list { grid-template-columns: 1fr; }
}

/* Floating service chips (logo + word) in the hero background */
.hero-symbols .sym.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--ink-rgb), 0.035);
  color: rgba(var(--ink-rgb), 0.3);
}
.hero-symbols .sym.label.accent {
  border-color: rgba(255, 120, 110, 0.28);
  color: rgba(255, 150, 142, 0.42);
}
.hero-symbols .sym.label i { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .hero-symbols .sym.label { font-size: 0.78rem; padding: 6px 11px; }
}

/* Running marquee for the tools strip */
.stack-logos.marquee {
  display: block;
  overflow: hidden;
  flex-wrap: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track span { flex: none; margin: 0 clamp(16px, 2.6vw, 34px); }
.stack-logos.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   WHY CANDOURA — reference layout (centered intro + 3-up tall
   glass cards, elevated featured card with starfield). Red.
   ============================================================ */
.why-reference {
  display: block;
  text-align: center;
}
.why-reference .why-copy {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 66px);
}
.why-reference .why-copy h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.why-reference .why-copy p { margin-left: auto; margin-right: auto; }
.why-reference .why-copy .button { margin-top: 28px; }

.why-reference .why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.fx-cinematic .why-reference .why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 300px;
  padding: 28px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.06), rgba(var(--ink-rgb), 0.02));
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.why-reference .why-card > * { position: relative; z-index: 1; }
.why-reference .why-icon { width: 52px; height: 52px; flex: none; }
.why-reference .why-icon svg { width: 24px; height: 24px; }
.why-reference .why-card h3 { margin-top: 18px; font-size: 1.45rem; }
.why-reference .why-card p { margin-top: 12px; color: rgba(var(--ink-rgb), 0.6); font-size: 0.96rem; line-height: 1.55; }
.why-reference .why-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.why-reference .why-foot > span:first-child { color: rgba(var(--ink-rgb), 0.5); font-size: 0.85rem; }
.why-pill {
  flex: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 110, 0.35);
  background: rgba(199, 24, 18, 0.18);
  color: #ffb3ab;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* elevated featured card with starfield + stronger glow */
.fx-cinematic .why-reference .why-card.featured {
  transform: translateY(-16px);
  border-color: rgba(255, 120, 110, 0.45);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(199, 24, 18, 0.42), transparent 62%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.09), rgba(var(--ink-rgb), 0.02));
  box-shadow: 0 44px 90px rgba(var(--shadow-rgb), 0.5), 0 0 80px rgba(199, 24, 18, 0.3);
}
.why-reference .why-card.featured .why-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 68% 48%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 42% 75%, rgba(255,180,170,0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 62%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 30% 55%, rgba(255,200,190,0.4), transparent);
  opacity: 0.85;
  animation: fxFloat 16s ease-in-out infinite;
}
.fx-cinematic .why-reference .why-card.featured .why-pill {
  background: rgba(199, 24, 18, 0.32);
  border-color: rgba(255, 120, 110, 0.5);
}

@media (max-width: 900px) {
  .why-reference .why-grid { grid-template-columns: 1fr; }
  .fx-cinematic .why-reference .why-card.featured { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .why-reference .why-card.featured .why-stars { animation: none; }
}

/* ============================================================
   WHY CANDOURA — sliding carousel + background pattern.
   Featured (centre) card glows and lifts as it moves.
   ============================================================ */
/* background patterns for the section */
.why-candoura .why-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(var(--ink-rgb), 0.07) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 120, 110, 0.05) 0 1px, transparent 1px 22px);
  background-size: 24px 24px, auto;
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 38%, #000, transparent 78%);
  opacity: 0.7;
}
.why-candoura .section-inner { position: relative; z-index: 1; }

/* carousel shell */
.why-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-viewport { flex: 1 1 auto; overflow: hidden; }
.why-track {
  display: flex;
  gap: 18px;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.why-track .why-card {
  flex: 0 0 clamp(280px, 30%, 400px);
}

/* nav buttons */
.why-nav {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgb(var(--ink-rgb));
  cursor: pointer;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
}
.why-nav:hover { background: rgba(199, 24, 18, 0.3); border-color: rgba(255, 120, 110, 0.45); transform: scale(1.06); }
.why-nav:disabled { opacity: 0.3; cursor: default; }
.why-nav i { width: 22px; height: 22px; }

/* controls row (dots + Meet our team, below the slider) */
.why-controls {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.why-dots { display: flex; gap: 9px; }
.why-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: rgba(var(--ink-rgb), 0.25);
  transition: width 0.3s ease, background 0.3s ease;
}
.why-dot.active { width: 26px; background: linear-gradient(90deg, #ff8478, #c71812); }

/* featured (centre) card: lift + scale + glow, overrides the static grid rule */
.fx-cinematic .why-reference .why-track .why-card {
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1), box-shadow 0.6s ease, border-color 0.6s ease, background 0.6s ease, opacity 0.6s ease;
  opacity: 0.72;
}
.fx-cinematic .why-reference .why-track .why-card.featured {
  transform: translateY(-12px) scale(1.03);
  opacity: 1;
  border-color: rgba(255, 120, 110, 0.5);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(199, 24, 18, 0.45), transparent 62%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.1), rgba(var(--ink-rgb), 0.02));
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.55), 0 0 90px rgba(199, 24, 18, 0.4);
}
/* starfield only on the active card */
.why-track .why-card .why-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 68% 48%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 42% 75%, rgba(255,180,170,0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 62%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 30% 55%, rgba(255,200,190,0.4), transparent);
}
.why-track .why-card.featured .why-stars { opacity: 0.85; animation: fxFloat 16s ease-in-out infinite; }

@media (max-width: 760px) {
  .why-track .why-card { flex: 0 0 82%; }
  .why-nav { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .why-track { transition: none; }
  .why-track .why-card.featured .why-stars { animation: none; }
}

/* ============================================================
   WHY CANDOURA carousel — coverflow / stacked overlap.
   (JS sets per-card transform/opacity/z-index inline.)
   ============================================================ */
.why-track { gap: 8px; }
.why-track .why-card {
  flex: 0 0 clamp(300px, 34%, 440px);
  transform-origin: center center;
  transition:
    transform 0.6s cubic-bezier(.22,.61,.36,1),
    opacity 0.6s ease,
    box-shadow 0.6s ease,
    border-color 0.6s ease,
    background 0.6s ease;
}
/* clip the track to the viewport; breathing room for the raised centre card */
.why-viewport { overflow: hidden; padding: 28px 0 16px; }

/* ============================================================
   BUILT-TO-LAST — connected 3-step flow (glowing red wires).
   ============================================================ */
.built-flow .section-inner { position: relative; }
.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: clamp(32px, 5vw, 56px);
}
.flow-wires {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.flow-wires path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.wire-glow { stroke: rgba(255, 90, 77, 0.6); stroke-width: 11; filter: blur(6px); }
.wire-line { stroke: #ff6a5e; stroke-width: 3.5; }
.wire-flow { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 9 200; opacity: 1; animation: wireFlow 3s linear infinite; }
@keyframes wireFlow { to { stroke-dashoffset: -247; } }

.flow-step {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.055), rgba(var(--ink-rgb), 0.02));
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.1), 0 28px 64px rgba(var(--shadow-rgb), 0.4);
}
.flow-step.s1 { grid-column: 1 / 8; margin-bottom: 64px; }
.flow-step.s2 { grid-column: 6 / 13; margin-bottom: 64px; }
.flow-step.s3 { grid-column: 1 / 8; }
.step-label {
  color: #ff8478;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.flow-step h3 { margin-top: 10px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.04; }
.step-rule { border: 0; border-top: 1px solid rgba(var(--ink-rgb), 0.14); margin: 18px 0; }
.flow-step p { color: rgba(var(--ink-rgb), 0.66); line-height: 1.55; max-width: 42ch; }
.flow-step .step-cta { margin-top: 24px; }

/* step 2 option rows (like the reference radios) */
.step-opts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.step-opts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  color: rgba(var(--ink-rgb), 0.82);
  font-weight: 650;
}
.step-opts li i { width: 18px; height: 18px; margin-left: auto; color: rgba(var(--ink-rgb), 0.55); }
.step-opts .opt-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(var(--ink-rgb), 0.4);
  flex: none;
}
.step-opts li.on {
  border-color: rgba(255, 120, 110, 0.55);
  background: rgba(199, 24, 18, 0.16);
  color: #fff;
}
.step-opts li.on .opt-radio { border-color: #ff8478; background: radial-gradient(circle, #ff8478 38%, transparent 42%); }
.step-opts li.on i { color: #ff8478; }

/* connection dots */
.flow-dot {
  position: absolute;
  z-index: 4;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ff8478;
  box-shadow: 0 0 0 4px rgba(255, 120, 110, 0.16), 0 0 20px 5px rgba(199, 24, 18, 0.7);
  animation: fxPulse2 3s ease-in-out infinite;
}
@keyframes fxPulse2 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.s1 [data-node="1out"] { left: 40%; bottom: -7px; }
.s2 [data-node="2in"] { left: -7px; top: 42%; }
.s2 [data-node="2out"] { right: 26%; bottom: -7px; }
.s3 [data-node="3in"] { right: -7px; top: 34%; }

@media (max-width: 860px) {
  .flow-steps { display: flex; flex-direction: column; gap: 40px; }
  .flow-step.s1, .flow-step.s2, .flow-step.s3 { margin-bottom: 0; }
  .flow-wires, .flow-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wire-flow { animation: none; }
  .flow-dot { animation: none; }
}

/* ============================================================
   PREMIUM RESTYLE — "What we build" interactive window.
   Visual-only upgrade (glass, depth); interactivity unchanged.
   ============================================================ */
.fx-cinematic .build-showcase .folder-window {
  border-radius: 24px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.04), rgba(var(--ink-rgb), 0.012)), rgba(10, 8, 8, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.14), 0 50px 120px rgba(var(--shadow-rgb), 0.6);
  overflow: hidden;
}
/* sidebar */
.fx-cinematic .build-showcase .folder-sidebar {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.012));
  border-right: 1px solid rgba(var(--ink-rgb), 0.08);
}
.fx-cinematic .build-showcase .folder-search {
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
}
.fx-cinematic .build-showcase .folder-tree .tree-item {
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fx-cinematic .build-showcase .folder-tree .tree-item:hover { background: rgba(var(--ink-rgb), 0.05); transform: translateX(2px); }
.fx-cinematic .build-showcase .folder-tree .tree-item.open {
  position: relative;
  background: linear-gradient(120deg, rgba(199, 24, 18, 0.3), rgba(var(--ink-rgb), 0.04));
  border: 1px solid rgba(255, 120, 110, 0.4);
  box-shadow: 0 0 24px rgba(199, 24, 18, 0.22);
}
.fx-cinematic .build-showcase .folder-tree .tree-item.open::before {
  content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: linear-gradient(#ff8478, #c71812);
}
/* window titlebar */
.fx-cinematic .build-showcase .doc-bar {
  background: rgba(var(--ink-rgb), 0.04);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  backdrop-filter: blur(10px);
}
/* stage: more depth */
.fx-cinematic .build-showcase .sys2 {
  background:
    radial-gradient(circle at 50% 38%, rgba(199, 24, 18, 0.3), transparent 18rem),
    radial-gradient(130% 80% at 50% 125%, rgba(0, 0, 0, 0.55), transparent 60%),
    linear-gradient(rgba(var(--ink-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.03) 1px, transparent 1px),
    #0a0808;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}
/* glassy satellite nodes */
.fx-cinematic .build-showcase .sys2-node {
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.12), 0 16px 36px rgba(var(--shadow-rgb), 0.42);
}
.fx-cinematic .build-showcase .sys2-node .n-ic {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
}
.fx-cinematic .build-showcase .sys2-node.active {
  background: linear-gradient(150deg, #ff5a4d, #810100);
  border-color: transparent;
}
.fx-cinematic .build-showcase .sys2-node.active .n-ic { background: rgba(255, 255, 255, 0.2); border-color: transparent; }
/* core node — glass sheen + breathing glow */
.fx-cinematic .build-showcase .sys2-core {
  border-radius: 18px;
  box-shadow: 0 0 70px rgba(199, 24, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: coreGlow 4s ease-in-out infinite;
}
@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(199, 24, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
  50% { box-shadow: 0 0 96px rgba(199, 24, 18, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
}
/* detail panel — nested premium card */
.fx-cinematic .build-showcase .sys2-detail {
  background: rgba(8, 7, 7, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
}
.fx-cinematic .build-showcase .detail-ic {
  box-shadow: 0 0 22px rgba(199, 24, 18, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.fx-cinematic .build-showcase .detail-how {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.035);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
}
.fx-cinematic .build-showcase .detail-badge {
  border-radius: 999px; padding: 5px 13px;
  background: rgba(199, 24, 18, 0.2); border: 1px solid rgba(255, 120, 110, 0.35); color: #ffb3ab;
}
/* build picker tabs — active glow */
.fx-cinematic .build-showcase .build-option { border-radius: 16px; }
.fx-cinematic .build-showcase .build-option.active {
  box-shadow: 0 0 40px rgba(199, 24, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ============================================================
   WHAT WE BUILD — compact dashboard with hover-flip cards.
   ============================================================ */
.fx-cinematic .build-showcase .section-inner { position: relative; z-index: 1; }
.wb-dash {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.045), rgba(var(--ink-rgb), 0.012)), rgba(10, 8, 8, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.14), 0 50px 120px rgba(var(--shadow-rgb), 0.6);
}
/* left rail */
.wb-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  background: rgba(8, 6, 6, 0.5);
  border-right: 1px solid rgba(var(--ink-rgb), 0.08);
}
.wb-logo { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 8px; }
.wb-logo img { width: 34px; height: 34px; object-fit: contain; }
.wb-rail-ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.5);
  cursor: default;
}
.wb-rail-ic i { width: 20px; height: 20px; }
.wb-rail-ic.active {
  color: #fff;
  background: linear-gradient(150deg, #c8160f, #810100);
  box-shadow: 0 0 24px rgba(199, 24, 18, 0.5);
}
.wb-rail-end { margin-top: auto; }
/* main */
.wb-main { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; min-width: 0; }
.wb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wb-title h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-top: 4px; }
.wb-head-actions { display: flex; align-items: center; gap: 12px; }
.wb-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  color: #ffb3ab; background: rgba(199, 24, 18, 0.16); border: 1px solid rgba(255, 120, 110, 0.32);
}
.wb-pill i { width: 13px; height: 13px; animation: fxPulse2 2.4s ease-in-out infinite; }

/* service blocks (icon + name) */
.wb-services { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wb-serv {
  flex: 1 1 0; min-width: 130px;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--ink-rgb), 0.04);
  color: rgba(var(--ink-rgb), 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.wb-serv:hover { transform: translateY(-3px); border-color: rgba(255, 120, 110, 0.4); }
.wb-serv strong { font-size: 0.98rem; }
.wb-serv-ic {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.12); background: rgba(var(--ink-rgb), 0.05); color: #ff8478;
}
.wb-serv-ic i { width: 20px; height: 20px; }
.wb-serv.active {
  border-color: transparent;
  background: linear-gradient(150deg, rgba(199, 24, 18, 0.42), rgba(99, 1, 2, 0.28));
  color: #fff;
  box-shadow: 0 0 36px rgba(199, 24, 18, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.wb-serv.active .wb-serv-ic { background: linear-gradient(150deg, #ff5a4d, #810100); border-color: transparent; color: #fff; }

/* cards label */
.wb-cards-label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 26px 0 14px; font-size: 0.9rem; color: rgba(var(--ink-rgb), 0.6);
}
.wb-cards-label strong { color: #fff; }
.wb-hint { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.78rem; color: rgba(var(--ink-rgb), 0.42); }
.wb-hint i { width: 14px; height: 14px; }

/* flip cards */
.wb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wb-card { perspective: 1200px; height: 158px; }
.wb-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.wb-card:hover .wb-card-inner, .wb-card:focus-within .wb-card-inner { transform: rotateY(180deg); }
.wb-card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  overflow: hidden;
}
.wb-card-front {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.06), rgba(var(--ink-rgb), 0.02));
}
.wb-card-ic {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px;
  border: 1px solid rgba(255, 120, 110, 0.28);
  background: linear-gradient(150deg, rgba(199, 24, 18, 0.4), rgba(99, 1, 2, 0.22));
  color: #ff8478; box-shadow: 0 0 22px rgba(199, 24, 18, 0.25);
}
.wb-card-ic i { width: 22px; height: 22px; }
.wb-card-front strong { margin-top: auto; font-size: 1.08rem; }
.wb-card-front small { margin-top: 4px; color: rgba(var(--ink-rgb), 0.55); font-size: 0.82rem; }
.wb-card-flip {
  position: absolute; top: 16px; right: 16px; color: rgba(var(--ink-rgb), 0.32);
}
.wb-card-flip i { width: 16px; height: 16px; }
.wb-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(199, 24, 18, 0.5), transparent 60%),
    linear-gradient(160deg, #2a0d0c, #150808);
  border-color: rgba(255, 120, 110, 0.4);
  justify-content: flex-start;
}
.wb-card-back strong { font-size: 1rem; color: #fff; }
.wb-card-back p { margin-top: 8px; font-size: 0.86rem; line-height: 1.5; color: rgba(var(--ink-rgb), 0.82); }
/* entrance stagger on service switch */
.wb-card { opacity: 0; transform: translateY(16px); }
.wb-card.in { animation: wbIn 0.5s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes wbIn { to { opacity: 1; transform: none; } }

/* footer marquee */
.wb-foot { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(var(--ink-rgb), 0.08); }
.wb-foot-label { flex: none; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--ink-rgb), 0.45); }
.wb-marquee {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wb-marquee .marquee-track { display: flex; width: max-content; align-items: center; animation: marqueeScroll 26s linear infinite; }
.wb-marquee .marquee-track span { flex: none; margin: 0 22px; font-weight: 800; color: rgba(var(--ink-rgb), 0.4); }

@media (max-width: 860px) {
  .wb-dash { grid-template-columns: 1fr; }
  .wb-rail { flex-direction: row; justify-content: flex-start; padding: 12px 16px; border-right: 0; border-bottom: 1px solid rgba(237,235,222,0.08); }
  .wb-rail-end, .wb-logo { margin: 0; }
  .wb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wb-cards { grid-template-columns: 1fr; }
  .wb-serv { min-width: 100%; }
  .wb-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-card:hover .wb-card-inner, .wb-card:focus-within .wb-card-inner { transform: rotateY(180deg); }
  .wb-card-inner { transition: none; }
  .wb-card.in { animation: none; opacity: 1; transform: none; }
  .wb-marquee .marquee-track { animation: none; }
}

/* "Built with" marquee moved outside the dashboard */
.wb-foot-outside {
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
}

/* ============================================================
   PREMIUM PILL BUTTONS — soft glow, site-wide. Appended last.
   ============================================================ */
.button, button.primary, button.secondary {
  position: relative;
  border-radius: 999px;
  min-height: 50px;
  padding: 13px 26px;
  font-weight: 780;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.32s ease, background 0.3s ease, border-color 0.3s ease;
}
.button.primary, button.primary {
  color: #fff;
  background: linear-gradient(180deg, #e0241b 0%, #b3110b 55%, #8c0a06 100%);
  border-color: rgba(255, 150, 140, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 26px rgba(199, 24, 18, 0.4), 0 0 26px rgba(199, 24, 18, 0.28);
}
.button.primary:hover, button.primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 16px 38px rgba(199, 24, 18, 0.5), 0 0 46px rgba(255, 90, 77, 0.6);
}
.button.secondary {
  color: var(--cotton);
  background: rgba(var(--ink-rgb), 0.06);
  border-color: rgba(var(--ink-rgb), 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.1);
}
.button.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 120, 110, 0.42);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.14), 0 0 32px rgba(199, 24, 18, 0.28);
}
.button:active, button.primary:active, button.secondary:active { transform: translateY(0); }
/* subtle constant breathing glow on primary CTAs in hero/cta spots */
.button.primary i, .button.secondary i { transition: transform 0.25s ease; }
.button.primary:hover i { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .button.primary:hover, .button.secondary:hover { transform: none; }
}

/* ============================================================
   CAPABILITY SLIDER (services) — featured, looping.
   ============================================================ */
.cap-slider { margin-top: clamp(28px, 4vw, 48px); position: relative; }
.cap-viewport { overflow: hidden; padding: 24px 0; }
.cap-track { display: flex; gap: 20px; transition: transform 0.65s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.cap-card {
  flex: 0 0 clamp(300px, 30%, 400px);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 28px;
  border-radius: 22px; text-decoration: none;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: linear-gradient(170deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.015));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--cotton);
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1), opacity 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease, background 0.6s ease;
}
.cap-num { position: absolute; top: 18px; right: 24px; font-size: 3.6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 120, 110, 0.25); }
.cap-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; border: 1px solid rgba(255, 120, 110, 0.28); background: linear-gradient(150deg, rgba(199, 24, 18, 0.4), rgba(99, 1, 2, 0.22)); color: #ff8478; }
.cap-ic i { width: 26px; height: 26px; }
.cap-body { margin-top: auto; }
.cap-card h3 { margin-top: 18px; font-size: 1.5rem; }
.cap-card p { margin-top: 8px; color: rgba(var(--ink-rgb), 0.6); }
.cap-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 750; color: #ff8478; }
.cap-go i { width: 16px; height: 16px; transition: transform 0.25s ease; }
.cap-card.active {
  border-color: rgba(255, 120, 110, 0.5);
  background: radial-gradient(120% 90% at 50% 0%, rgba(199, 24, 18, 0.42), transparent 62%), linear-gradient(170deg, rgba(var(--ink-rgb), 0.08), rgba(var(--ink-rgb), 0.02));
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.55), 0 0 90px rgba(199, 24, 18, 0.4);
}
.cap-card:hover .cap-go i { transform: translateX(4px); }
.cap-controls { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.cap-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.14); overflow: hidden; }
.cap-bar span { display: block; height: 100%; width: 11%; background: linear-gradient(90deg, #ff8478, #c71812); transition: width 0.6s ease; }
.cap-pager { display: flex; gap: 14px; }
.cap-dot { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 800; font-size: 0.95rem; color: rgba(var(--ink-rgb), 0.4); transition: color 0.25s ease, transform 0.25s ease; }
.cap-dot.on { color: #fff; transform: scale(1.35); }

/* ============================================================
   SERVICE DETAIL PAGE — book-open reveal animation.
   ============================================================ */
.sd-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: rgba(var(--ink-rgb), 0.72); text-decoration: none; font-weight: 650; }
.sd-back:hover { color: #fff; }
.sd-back i { width: 18px; height: 18px; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sd-cover { perspective: 1500px; }
.sd-cover-inner {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px; padding: 30px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 120, 110, 0.4);
  background: radial-gradient(120% 90% at 28% 0%, rgba(199, 24, 18, 0.55), transparent 60%), linear-gradient(160deg, #2a0d0c, #140808);
  box-shadow: 0 50px 110px rgba(var(--shadow-rgb), 0.6), 0 0 90px rgba(199, 24, 18, 0.32);
  transform-origin: left center; transform: rotateY(-105deg); opacity: 0;
}
.sd-in .sd-cover-inner { animation: sdOpen 0.95s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes sdOpen { 0% { transform: rotateY(-105deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotateY(0deg); opacity: 1; } }
.sd-num { position: absolute; top: 22px; right: 26px; font-size: 3.4rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, 0.12); }
.sd-cover-ic { width: 74px; height: 74px; margin-top: auto; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sd-cover-ic i { width: 34px; height: 34px; }
.sd-cover-inner strong { margin-top: 18px; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.sd-info > * { opacity: 0; transform: translateY(18px); }
.sd-in .sd-info > * { animation: sdUp 0.6s ease forwards; }
.sd-in .sd-info > *:nth-child(1) { animation-delay: 0.35s; }
.sd-in .sd-info > *:nth-child(2) { animation-delay: 0.45s; }
.sd-in .sd-info > *:nth-child(3) { animation-delay: 0.55s; }
.sd-in .sd-info > *:nth-child(4) { animation-delay: 0.65s; }
@keyframes sdUp { to { opacity: 1; transform: none; } }
.sd-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.02; margin-top: 8px; }
.sd-info .lead { margin-top: 18px; max-width: 56ch; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sd-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.sd-point {
  padding: 24px; border-radius: 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.015));
  opacity: 0; transform: translateY(22px) scale(0.96);
}
.sd-in .sd-point { animation: sdPop 0.6s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: calc(0.55s + var(--i) * 0.09s); }
@keyframes sdPop { to { opacity: 1; transform: none; } }
.sd-point-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; border: 1px solid rgba(255, 120, 110, 0.28); background: linear-gradient(150deg, rgba(199, 24, 18, 0.4), rgba(99, 1, 2, 0.22)); color: #ff8478; box-shadow: 0 0 22px rgba(199, 24, 18, 0.22); }
.sd-point-ic i { width: 22px; height: 22px; }
.sd-point h3 { margin-top: 16px; font-size: 1.12rem; }
.sd-point p { margin-top: 8px; color: rgba(var(--ink-rgb), 0.62); font-size: 0.9rem; line-height: 1.5; }
.sd-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid rgba(var(--ink-rgb), 0.1); }
.sd-nav a { display: inline-flex; align-items: center; gap: 12px; color: rgba(var(--ink-rgb), 0.78); text-decoration: none; }
.sd-nav a:hover { color: #fff; }
.sd-nav small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--ink-rgb), 0.45); }
.sd-nav span { font-weight: 750; }
.sd-nav i { width: 22px; height: 22px; flex: none; }

@media (max-width: 860px) {
  .sd-grid { grid-template-columns: 1fr; }
  .sd-cover-inner { aspect-ratio: 16 / 9; }
  .sd-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .sd-points { grid-template-columns: 1fr; } .cap-card { flex-basis: 82%; } }
@media (prefers-reduced-motion: reduce) {
  .sd-cover-inner, .sd-info > *, .sd-point { opacity: 1; transform: none; animation: none; }
  .cap-track { transition: none; }
}

/* ============================================================
   SERVICE DETAIL — overview, preview mockup, deliverables, stats
   ============================================================ */
.sd-block { margin-top: clamp(48px, 6vw, 88px); }
.sd-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  opacity: 0; transform: translateY(24px);
}
.sd-in .sd-overview { animation: sdUp 0.7s ease 0.7s forwards; }
.sd-ov h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 8px; line-height: 1.05; }
.sd-ov > p { margin-top: 16px; color: rgba(var(--ink-rgb), 0.66); line-height: 1.65; max-width: 52ch; }
.sd-deliver { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.sd-deliver li { display: flex; align-items: center; gap: 10px; color: rgba(var(--ink-rgb), 0.82); font-size: 0.92rem; }
.sd-deliver i { width: 18px; height: 18px; flex: none; color: #ff8478; }

/* preview mockup */
.sd-preview { perspective: 1400px; }
.sd-win, .sd-phone {
  position: relative; overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.05), rgba(20, 12, 12, 0.7));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.55), 0 0 70px rgba(199, 24, 18, 0.18);
}
.sd-win { border-radius: 18px; }
.sd-win-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.08); }
.sd-win-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.2); }
.sd-win-bar span:first-child { background: #c71812; }
.sd-win-bar b { margin-left: 10px; font-size: 0.82rem; color: rgba(var(--ink-rgb), 0.7); }
.sd-win-body { position: relative; padding: 24px; }
.sd-blob {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60%; height: 70%; top: -10%; right: -8%;
  background: radial-gradient(circle, rgba(255, 90, 77, 0.55), transparent 62%);
  filter: blur(20px);
  animation: fxFloat 9s ease-in-out infinite;
}
.sd-win-head, .sd-bars, .sd-rows { position: relative; z-index: 1; }
.sd-win-head { display: flex; align-items: center; gap: 14px; }
.sd-win-ic, .sd-phone-ic {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(150deg, #ff5a4d, #810100); color: #fff;
  box-shadow: 0 0 26px rgba(199, 24, 18, 0.5);
}
.sd-win-ic i, .sd-phone-ic i { width: 24px; height: 24px; }
.sd-rows { display: grid; gap: 9px; margin-top: 18px; }
.sd-rows-sm { margin-top: 0; flex: 1; }
.sd-rows span { height: 9px; width: var(--w, 80%); border-radius: 6px; background: rgba(var(--ink-rgb), 0.12); }
.sd-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 22px; }
.sd-bars i { flex: 1; height: var(--h, 50%); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #ff8478, rgba(199, 24, 18, 0.3)); }
/* phone variant */
.sd-phone { border-radius: 30px; padding: 26px 22px; max-width: 320px; margin: 0 auto; }
.sd-notch { display: block; width: 90px; height: 7px; border-radius: 7px; background: rgba(var(--ink-rgb), 0.2); margin: 0 auto 22px; }
.sd-ph-h { display: block; position: relative; z-index: 1; margin-top: 16px; font-size: 1.3rem; color: #fff; }
.sd-phone-ic { position: relative; z-index: 1; }

/* stat blobs (reference image style) */
.sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); opacity: 0; transform: translateY(24px); }
.sd-in .sd-stats { animation: sdUp 0.7s ease 0.85s forwards; }
.sd-stat {
  position: relative; overflow: hidden;
  padding: 30px 28px; border-radius: 20px;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.04), rgba(var(--ink-rgb), 0.012));
}
.sd-stat-blob {
  position: absolute; right: -20%; bottom: -40%; width: 70%; height: 130%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 90, 77, 0.5), transparent 60%);
  filter: blur(14px);
}
.sd-stat strong { position: relative; z-index: 1; display: block; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 850; color: var(--ink); }
.sd-stat small { position: relative; z-index: 1; display: block; margin-top: 6px; color: rgba(var(--ink-rgb), 0.6); font-size: 0.9rem; }

@media (max-width: 860px) {
  .sd-overview { grid-template-columns: 1fr; }
  .sd-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .sd-deliver { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .sd-overview, .sd-stats { opacity: 1; transform: none; animation: none; }
  .sd-blob { animation: none; }
}

/* ============================================================
   SERVICE DETAIL v2 — real-image shot, numbered points,
   ascending stat blobs, FAQ accordion (reference style).
   ============================================================ */
.sd-sec-label { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(var(--ink-rgb), 0.55); margin: 0 0 4px; }
.sd-sec-label span { color: #ff8478; }
.sd-points { margin-top: 18px; }
.sd-point { position: relative; }
.sd-point-n { position: absolute; top: 18px; right: 20px; font-size: 1.5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 120, 110, 0.3); }

/* real-image example shot */
.sd-shot { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(var(--ink-rgb), 0.14); box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.55), 0 0 70px rgba(199, 24, 18, 0.16); transform-origin: right center; }
.sd-shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 10 / 7; filter: saturate(1.05) contrast(1.02); }
.sd-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12, 6, 6, 0.85)), radial-gradient(120% 80% at 80% 0%, rgba(199, 24, 18, 0.35), transparent 60%); pointer-events: none; }
.sd-shot-blob { position: absolute; right: -12%; top: -16%; width: 55%; height: 60%; z-index: 1; background: radial-gradient(circle, rgba(255, 90, 77, 0.5), transparent 62%); filter: blur(26px); pointer-events: none; animation: fxFloat 9s ease-in-out infinite; }
.sd-shot-tag { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: rgba(20, 12, 12, 0.6); border: 1px solid rgba(var(--ink-rgb), 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-weight: 750; font-size: 0.92rem; }
.sd-shot-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(150deg, #ff5a4d, #810100); color: #fff; }
.sd-shot-ic i { width: 18px; height: 18px; }
.sd-in .sd-shot { animation: sdShot 0.9s cubic-bezier(.22,.61,.36,1) 0.6s both; }
@keyframes sdShot { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ascending stat blobs (15/35/45 reference) */
.sd-stats { align-items: stretch; }
.sd-stat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.sd-stat--1 { min-height: 150px; }
.sd-stat--2 { min-height: 178px; }
.sd-stat--3 { min-height: 206px; }
.sd-stat--1 .sd-stat-blob { width: 55%; height: 90%; }
.sd-stat--2 .sd-stat-blob { width: 68%; height: 115%; }
.sd-stat--3 .sd-stat-blob { width: 80%; height: 135%; }

/* FAQ accordion */
.sd-faq h2 { margin: 8px 0 22px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sd-faq-list { display: grid; gap: 12px; }
.sd-faq-item { border: 1px solid rgba(var(--ink-rgb), 0.12); border-radius: 16px; background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.04), rgba(var(--ink-rgb), 0.012)); overflow: hidden; transition: border-color 0.3s ease, background 0.3s ease; }
.sd-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; color: var(--cotton); }
.sd-faq-item summary::-webkit-details-marker { display: none; }
.sd-faq-item summary i { width: 22px; height: 22px; flex: none; color: #ff8478; transition: transform 0.3s ease; }
.sd-faq-item[open] { border-color: rgba(255, 120, 110, 0.4); background: radial-gradient(120% 100% at 0% 0%, rgba(199, 24, 18, 0.22), transparent 55%), linear-gradient(180deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.015)); }
.sd-faq-item[open] summary i { transform: rotate(45deg); }
.sd-faq-a { padding: 0 24px 22px; }
.sd-faq-a p { color: rgba(var(--ink-rgb), 0.7); line-height: 1.6; max-width: 70ch; }
.sd-in .sd-faq { animation: sdUp 0.7s ease 0.95s both; }

@media (max-width: 560px) {
  .sd-faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-shot, .sd-faq { animation: none; opacity: 1; }
  .sd-shot-blob { animation: none; }
}

/* ============================================================
   CLOUD-DASHBOARD APP MOCKUP (Desktop Applications example)
   ============================================================ */
.sd-shot-app { border: 0; box-shadow: none; background: none; }
.sd-shot-app::after { display: none; }
.cd-win {
  border-radius: 18px; overflow: hidden;
  background: #f4f4f7; color: #1a1726;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.6), 0 0 60px rgba(199, 24, 18, 0.14);
  font-size: 11px; line-height: 1.3;
}
.cd-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e7e7ee; border-bottom: 1px solid rgba(0,0,0,0.06); }
.cd-l { width: 9px; height: 9px; border-radius: 50%; }
.cd-l.r { background: #ff5f57; } .cd-l.y { background: #febc2e; } .cd-l.g { background: #28c840; }
.cd-url { margin: 0 auto; padding: 3px 14px; background: #fff; border-radius: 6px; color: #6b6878; font-size: 10px; }
.cd-body { display: grid; grid-template-columns: 38% 62%; min-height: 360px; }
/* sidebar */
.cd-side { background: #14121d; color: #c7c4d6; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.cd-side-top { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; margin-bottom: 6px; }
.cd-logo { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #7c5cff; color: #fff; }
.cd-logo i, .cd-side i { width: 13px; height: 13px; }
.cd-search { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,0.06); color: #8e8aa0; font-size: 10px; }
.cd-search span { margin-left: auto; opacity: 0.6; }
.cd-nav { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 8px; font-weight: 650; }
.cd-nav b { margin-left: auto; font-size: 9px; background: rgba(255,255,255,0.1); padding: 1px 6px; border-radius: 6px; }
.cd-nav.active { background: linear-gradient(90deg, #7c5cff, #6a4cf0); color: #fff; box-shadow: 0 6px 18px rgba(124,92,255,0.4); }
.cd-label { margin: 10px 4px 4px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6878; }
.cd-tree { display: flex; align-items: center; gap: 7px; padding: 6px 4px; color: #a9a6b8; }
.cd-newfolder { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 8px; padding: 9px; border-radius: 9px; border: 1px dashed rgba(255,255,255,0.18); color: #c7c4d6; }
.cd-promo { margin-top: auto; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, #2a2147, #1a1430); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-rocket { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(124,92,255,0.25); color: #b6a4ff; margin-bottom: 4px; }
.cd-promo strong { color: #fff; font-size: 11px; } .cd-promo small { color: #8e8aa0; font-size: 9px; }
.cd-up { margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: linear-gradient(90deg, #7c5cff, #6a4cf0); color: #fff; font-weight: 700; font-size: 10px; }
/* main */
.cd-main { background: #fff; padding: 16px 18px; }
.cd-storage { display: flex; align-items: center; gap: 10px; }
.cd-store-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #eef0ff; color: #7c5cff; }
.cd-store-ic i { width: 14px; height: 14px; }
.cd-storage b { display: block; font-size: 11px; } .cd-storage small { color: #8b8896; font-size: 9px; }
.cd-store-bar { flex: 1; height: 6px; border-radius: 6px; background: #ecedf3; overflow: hidden; }
.cd-store-bar i { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, #7c5cff, #a78bff); }
.cd-crumb { color: #9a97a6; margin: 12px 0 14px; font-size: 10px; }
.cd-h { font-weight: 800; font-size: 12px; margin: 14px 0 8px; }
.cd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-card { padding: 12px; border-radius: 10px; border: 1px solid #ececf2; background: #fafafe; }
.cd-doc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #2b6cf6; color: #fff; font-weight: 800; font-size: 10px; }
.cd-card b { display: block; margin-top: 26px; font-size: 11px; } .cd-card small { color: #9a97a6; font-size: 9px; }
.cd-folders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-folder { padding: 14px 12px; border-radius: 12px; background: linear-gradient(160deg, #f0eefe, #fafafe); border: 1px solid #ececf2; }
.cd-fold { display: block; width: 30px; height: 24px; border-radius: 5px; background: #c9bdff; margin-bottom: 24px; }
.cd-fold.purple { background: #b29bff; }
.cd-folder b { display: block; font-size: 11px; } .cd-folder small { color: #9a97a6; font-size: 9px; }
.cd-list { margin-top: 14px; display: grid; gap: 1px; background: #ececf2; border-radius: 10px; overflow: hidden; }
.cd-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; font-size: 11px; }
.cd-fic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: #2b6cf6; color: #fff; font-weight: 800; font-size: 9px; }
.cd-fic.x { background: #1f9d55; } .cd-fic.f { background: #a259ff; }
.cd-row em { margin-left: auto; font-style: normal; font-size: 9px; color: #8b8896; background: #f1f1f6; padding: 2px 8px; border-radius: 6px; }
.cd-row em.r { color: #c0392b; background: #fdecea; }
@media (max-width: 620px) { .cd-body { grid-template-columns: 1fr; } .cd-side { display: none; } }

/* ============================================================
   SERVICE PAGES — mobile alignment & font fixes
   ============================================================ */
@media (max-width: 860px) {
  /* stat cards: compact, top-aligned (no tall empty blocks when stacked) */
  .sd-stats { gap: 12px; }
  .sd-stat, .sd-stat--1, .sd-stat--2, .sd-stat--3 { min-height: 0; justify-content: flex-start; padding: 22px 24px; }
  .sd-stat strong { font-size: 2rem; }
  .sd-stat-blob,
  .sd-stat--1 .sd-stat-blob, .sd-stat--2 .sd-stat-blob, .sd-stat--3 .sd-stat-blob { width: 48%; height: 95%; right: -12%; bottom: -25%; }
  /* tighter, consistent section rhythm */
  .sd-block { margin-top: 46px; }
  .sd-overview { gap: 26px; }
  /* font sizes scaled for phone */
  .sd-info h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .sd-ov h2, .sd-faq h2 { font-size: clamp(1.55rem, 6.5vw, 2.1rem); }
  .sd-cover-inner strong { font-size: 1.4rem; }
  .sd-num { font-size: 2.6rem; }
  .sd-point h3 { font-size: 1.05rem; }
  /* cover: a touch shorter so it doesn't dominate the fold */
  .sd-cover-inner { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .sd-info h1 { font-size: clamp(1.9rem, 9vw, 2.3rem); }
  .sd-shot-tag { font-size: 0.82rem; }
  /* keep the example shot readable, not too tall */
  .sd-shot img { aspect-ratio: 4 / 3; }
}

/* breathing room between hero and the first "What's included" label */
.sd-grid + .sd-sec-label { margin-top: clamp(40px, 5vw, 66px); }

/* ============================================================
   WHAT WE BUILD — clean mobile dashboard (mobile-only)
   ============================================================ */
/* tap-to-flip (touch): toggled class mirrors the hover flip */
.wb-card.flipped .wb-card-inner { transform: rotateY(180deg); }

@media (max-width: 760px) {
  .wb-dash { grid-template-columns: 1fr; border-radius: 20px; }
  .wb-rail { display: none; }                 /* hide decorative rail — full width for content */
  .wb-main { padding: 18px 16px; }

  /* compact, clean header */
  .wb-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wb-title h2 { font-size: 1.55rem; }
  .wb-head-actions { width: 100%; gap: 8px; }
  .wb-pill { padding: 6px 12px; font-size: 0.72rem; }
  .wb-head-actions .button { flex: 1; min-height: 42px; padding: 10px 16px; font-size: 0.86rem; }

  /* service tabs: horizontal-scroll strip of small chips (no stacking) */
  .wb-services {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 16px -16px 0;
    padding: 2px 16px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .wb-services::-webkit-scrollbar { display: none; }
  .wb-serv {
    flex: 0 0 auto;
    min-width: auto;
    padding: 9px 14px;
    border-radius: 12px;
    scroll-snap-align: start;
  }
  .wb-serv strong { font-size: 0.85rem; white-space: nowrap; }
  .wb-serv-ic { width: 30px; height: 30px; border-radius: 9px; }
  .wb-serv-ic i { width: 16px; height: 16px; }

  .wb-cards-label { font-size: 0.82rem; margin: 20px 0 12px; }
  .wb-hint { display: none; }

  /* cards: clean 2-column grid (not one-on-one stacking) */
  .wb-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wb-card { height: 138px; }
  .wb-card-face { padding: 14px; border-radius: 14px; }
  .wb-card-ic { width: 36px; height: 36px; border-radius: 10px; }
  .wb-card-ic i { width: 18px; height: 18px; }
  .wb-card-front strong { font-size: 0.92rem; }
  .wb-card-front small { font-size: 0.7rem; }
  .wb-card-flip { top: 12px; right: 12px; }
  .wb-card-flip i { width: 14px; height: 14px; }
  .wb-card-back { padding: 14px; }
  .wb-card-back strong { font-size: 0.88rem; }
  .wb-card-back p { font-size: 0.72rem; margin-top: 6px; line-height: 1.4; }

  /* tools marquee a touch tighter */
  .wb-foot-outside { margin-top: 18px; }
}
@media (max-width: 380px) {
  .wb-card { height: 132px; }
  .wb-card-front small { display: none; }     /* keep tiny cards uncluttered */
}

/* ============================================================
   BUTTON SIZES (smaller, refined) + SWIPE SLIDERS
   ============================================================ */
/* slightly smaller, cleaner buttons site-wide */
.button, button.primary, button.secondary {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 760;
}
.button i, button.primary i, button.secondary i { width: 17px; height: 17px; }

/* Why-Candoura carousel: borderless cards + arrows removed */
.why-nav { display: none !important; }
.fx-cinematic .why-reference .why-track .why-card,
.fx-cinematic .why-reference .why-track .why-card.featured { border-color: transparent; }
/* carousel fills the row now the arrows are gone */
.why-carousel { gap: 0; }

/* ============================================================
   STACKED CARD DECK — Why-Candoura (home) + capability (services).
   A front card with cards fanned behind it; JS sets each card's
   transform / opacity / z-index. Swipe, the cues, or autoplay cycle.
   ============================================================ */
.cap-controls { display: none !important; }       /* old slider dots — gone */
.why-carousel.is-stack,
.cap-slider.is-stack { display: block; position: relative; }

/* the viewport becomes the deck stage; peeking cards clip at its edges */
.why-carousel.is-stack .why-viewport,
.cap-slider.is-stack .cap-viewport {
  position: relative;
  overflow: hidden;
  height: 440px;
  padding: 0;
  cursor: grab;
}
.why-carousel.is-stack .why-viewport:active,
.cap-slider.is-stack .cap-viewport:active { cursor: grabbing; }

.why-carousel.is-stack .why-track,
.cap-slider.is-stack .cap-track {
  position: absolute;
  inset: 0;
  width: auto;
  display: block;
  transform: none !important;
}

/* each card is an absolutely-stacked, centred deck card.
   NB: opaque background is essential — the front card must fully hide the
   cards stacked behind it, otherwise their text bleeds through. */
.why-carousel.is-stack .why-card,
.cap-slider.is-stack .cap-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 360px);
  max-width: 360px;
  min-height: 340px;
  margin: 0;
  flex: none;
  background: linear-gradient(168deg, #271c1c 0%, #160f0f 100%) !important;
  border: 1px solid rgba(255, 120, 110, 0.22) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  transform: translate(-50%, -50%);
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1), opacity 0.5s ease, box-shadow 0.5s ease;
  will-change: transform, opacity;
  -webkit-user-select: none; user-select: none;
}
.cap-slider.is-stack .cap-card { padding: 30px; }
.why-carousel.is-stack .why-card.stack-active,
.cap-slider.is-stack .cap-card.stack-active {
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.55), 0 0 0 1px rgba(255, 120, 110, 0.18);
}

/* big deck index number on the Why cards */
.why-carousel.is-stack .stack-num {
  display: block;
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.6px rgba(255, 120, 110, 0.55);
  margin-bottom: 6px;
}

/* "What we build" deck heading */
.wb-deck-head { margin-bottom: 26px; }

/* prev / next cues beneath the deck */
.stack-cues { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.stack-cue {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 120, 110, 0.4);
  background: rgba(199, 24, 18, 0.16); color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.stack-cue:hover { background: rgba(199, 24, 18, 0.42); border-color: rgba(255, 120, 110, 0.7); transform: scale(1.07); }
.stack-cue i { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .why-carousel.is-stack .why-viewport,
  .cap-slider.is-stack .cap-viewport { height: 416px; }
  .why-carousel.is-stack .why-card,
  .cap-slider.is-stack .cap-card { width: 84%; }
  /* on phones the cue buttons are unreliable — swipe instead */
  .stack-cues { display: none !important; }
}

/* ============================================================
   MOBILE PROPORTION PASS — buttons, headings, blog cards, rails.
   One consolidated block so phone layouts read clean & balanced.
   Appended last + body-prefixed so it wins the cascade.
   ============================================================ */
@media (max-width: 640px) {
  /* — Buttons: compact & proportionate, not chunky — */
  body .button,
  body button.primary,
  body button.secondary {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    border-radius: 11px;
  }
  body .button i,
  body button.primary i,
  body button.secondary i { width: 14px; height: 14px; }

  /* action rows: even, full-width-but-balanced, never overflowing */
  body .hero-actions,
  body .page-actions,
  body .wb-head-actions { flex-wrap: wrap; gap: 10px; }
  body .hero-actions .button,
  body .page-actions .button { flex: 1 1 auto; justify-content: center; }

  /* — Headings: refined, understated type (museum-clean) — */
  body .hero h1 { font-size: clamp(1.72rem, 7.4vw, 2.05rem); line-height: 1.08; }
  body .page-hero h1,
  body .services-clean-hero h1,
  body .sch-grid .sch-copy h1,
  body .about-hero h1 { font-size: clamp(1.78rem, 7.6vw, 2.2rem); line-height: 1.07; }
  body .hero .lead { font-size: 0.96rem; }
  body .why-reference .why-copy h2,
  body .fx-story-head h2,
  body .section-heading h2 { font-size: clamp(1.42rem, 6.4vw, 1.75rem); line-height: 1.12; }
  body .build-showcase h2 { font-size: 1.35rem; }

  /* — Blog cards: kill the tall empty canvas void; tighten copy — */
  body .article-card { min-height: auto; }
  body .article-card .blog-canvas { min-height: 132px; }
  body .article-card-copy { padding: 20px; }
  body .article-card h3 { font-size: 1.4rem; line-height: 1.12; }
  body .article-card p { font-size: 0.94rem; margin-top: 10px; }

  /* — Loop rails: one card + a peek of the next, balanced gutters —
     NB: the track is width:max-content, so a % flex-basis would resolve
     against the whole strip (huge). Use vw so it tracks the viewport. */
  body .why-track .why-card { flex: 0 0 78vw; max-width: 340px; }
  body .cap-card { flex: 0 0 78vw; max-width: 340px; min-height: 252px; padding: 22px; }
  body .why-viewport { padding: 16px 0 10px; }
  body .cap-viewport { padding: 16px 0; }
  body .why-reference .why-card h3 { font-size: 1.3rem; margin-top: 14px; }
  body .cap-card h3 { font-size: 1.3rem; }
  body .cap-num { font-size: 2.8rem; }

  /* — "What we build" dashboard: keep the panel airy on phones — */
  body .wb-head-actions .wb-pill { display: none; }      /* declutter the header row */
  body .wb-cards-label .wb-hint { display: none; }        /* hover hint is desktop-only */
}

/* Extra-small phones: shave a little more so nothing feels cramped */
@media (max-width: 380px) {
  body .hero h1 { font-size: 1.62rem; }
  body .page-hero h1,
  body .sch-grid .sch-copy h1,
  body .services-clean-hero h1 { font-size: 1.68rem; }
  body .why-reference .why-copy h2,
  body .section-heading h2 { font-size: 1.4rem; }
  body .button, body button.primary, body button.secondary { font-size: 0.78rem; padding: 8px 12px; min-height: 34px; }
}

/* ============================================================
   BLOG FOLDER CARD — warm banner + notched folder tab + stat row.
   (folder-card overrides the older grid-based .article-card.)
   ============================================================ */
body .folder-card {
  --fc-ink: #161616;          /* folder body colour */
  --fc-frame: #050505;        /* thick outer frame   */
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px;
  background: var(--fc-frame);
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 26px 60px rgba(var(--shadow-rgb), 0.34);
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1), box-shadow 0.5s ease;
}
body .folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 80px rgba(var(--shadow-rgb), 0.46);
}

/* warm, fiery banner (on-brand red→orange swirl) */
body .folder-card .fc-banner {
  display: block;
  position: relative;
  height: 196px;
  border-radius: 24px;
  overflow: hidden;
  /* real photo on top, fiery gradient underneath as a fallback */
  background:
    var(--fc-img, none) center / cover no-repeat,
    radial-gradient(62% 80% at 80% 16%, rgba(255, 214, 170, 0.95), transparent 60%),
    radial-gradient(90% 120% at 22% 32%, #ff6a1a, transparent 56%),
    conic-gradient(from 205deg at 58% 42%, #c71812, #ff8a3d, #6f0a06, #b3140f, #c71812);
}
body .folder-card .fc-banner::after {   /* contrast vignette so the white label stays legible */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(0, 0, 0, 0.34) 2%, transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 40%);
}
body .folder-card .fc-brand {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.08;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(var(--shadow-rgb), 0.35);
}

/* the folder TAB rises above the body and holds the title */
body .folder-card .fc-tab {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin: -100px 0 0 10px;   /* rise high into the banner; also lifts the body */
  max-width: 76%;
  padding: 14px 22px 12px;
  background: var(--fc-ink);
  border-radius: 22px 22px 0 0;
}
body .folder-card .fc-tab::after {     /* concave fillet scooping tab → body */
  content: "";
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 30px;
  height: 30px;
  /* ink fills the inner corner; a quarter-circle is cut from the top-right
     so the banner shows through and the tab flows into the body like a folder */
  background: radial-gradient(circle at top right, transparent 0 30px, var(--fc-ink) 30px);
}
/* the redundant auto-number badge from the old article-card belongs to a
   different layout — the folder card shows its number in the stat row */
.fx-cinematic .article-list .folder-card::after { content: none; display: none; }
body .folder-card .fc-tab h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 820;
  line-height: 1.12;
  color: #fff;
}

/* the dark folder BODY */
body .folder-card .fc-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;             /* the tab's negative margin already lifts the body */
  padding: 16px 22px 20px;
  min-height: 188px;
  background: var(--fc-ink);
  border-radius: 0 22px 22px 22px;
}
body .folder-card .fc-sub {
  font-size: 1.18rem;
  font-weight: 600;
  color: rgba(var(--ink-rgb), 0.5);
}
body .folder-card .fc-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.62);
}
body .folder-card .fc-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
body .folder-card .fc-num {
  font-size: 2.4rem;
  font-weight: 850;
  line-height: 0.9;
  color: #fff;
}
body .folder-card .fc-num small {
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: 8px;
  color: #fff;
}
body .folder-card .fc-count {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

@media (max-width: 640px) {
  body .folder-card { border-radius: 26px; }
  body .folder-card .fc-banner { height: 172px; }
  body .folder-card .fc-tab { margin-top: -92px; }
  body .folder-card .fc-tab h3 { font-size: 1.2rem; }
  body .folder-card .fc-sub { font-size: 1.05rem; }
  body .folder-card .fc-num { font-size: 2.1rem; }
  body .folder-card .fc-num small,
  body .folder-card .fc-count { font-size: 0.98rem; }
}

/* ============================================================
   MOBILE SERVICE PAGES — rebuilt rhythm for phones (not a shrunk
   desktop). Tighter section spacing, right-sized card titles,
   list-style flow steps, and decorative-only blocks dropped.
   ============================================================ */
@media (max-width: 640px) {
  /* 1) Section rhythm: 88px desktop gaps make the page feel endless
        and disconnected on a phone — pull them in so sections relate. */
  body .band { padding-top: 42px; padding-bottom: 42px; padding-left: 18px; padding-right: 18px; }
  body .section-heading { gap: 8px; margin-bottom: 22px; }
  body .section-heading .lead { font-size: 0.96rem; }

  /* 2) Card titles inside sections were rendering at desktop sizes. */
  body .service-panel h3 { font-size: 1.4rem; line-height: 1.15; }
  body .service-columns article h3 { font-size: 1.2rem; }
  body .industry-cases article h3 { font-size: 1.15rem; }
  body .industry-cases article { padding: 20px; }

  /* 3) "Built to last" steps: this is a desktop 12-col grid with SVG wires
        and absolute connector dots — collapse it to a plain stacked list so
        it reads top-to-bottom on a phone instead of floaty centred cards. */
  body .flow-steps { display: flex; flex-direction: column; gap: 14px; }
  body .flow-step {
    display: block;
    min-height: 0;
    text-align: left;
    padding: 20px 18px;
  }
  /* the step internals are centred by the desktop grid layout; force a clean
     left-aligned block flow on phones (scoped + !important to win cleanly) */
  body .built-flow .flow-step,
  body .built-flow .flow-step > * { text-align: left !important; }
  body .built-flow .flow-step h3,
  body .built-flow .flow-step p,
  body .built-flow .flow-step .step-label,
  body .built-flow .flow-step .step-opts,
  body .built-flow .flow-step .step-rule {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* the desktop step card centres its grid items — neutralise that */
  body .built-flow .flow-step { justify-items: start !important; align-items: start !important; }
  body .flow-step .flow-dot { display: none; }   /* wire endpoints; wires are hidden on mobile */
  body .flow-step h3 { font-size: 1.3rem; line-height: 1.15; margin: 4px 0 8px; }
  body .flow-step p { font-size: 0.95rem; }
  body .flow-step .step-opts { margin-top: 8px; }
  body .flow-step .step-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 16px; }

  /* 4) Drop the decorative SVG wires on phones (they only make sense when
        the 3 steps sit side by side). The architecture cards now stack fine. */
  body .built-flow .flow-wires { display: none; }

  /* 5) Service intro columns: even, compact stack. */
  body .service-columns { gap: 14px; }
  body .service-columns article { padding: 22px; }

  /* ---- service.html DETAIL page ---- */
  /* trim the tall hero cover + oversized title, tighten point/stat cards */
  body .sd-stage { padding-top: 8px; }
  body .sd-cover { min-height: 168px; }
  body .sd-info h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); line-height: 1.05; }
  body .sd-point { padding: 20px; }
  body .sd-point h3 { font-size: 1.12rem; }
  body .sd-stats { gap: 12px; }
  body .sd-stat { padding: 20px; }
  body .sd-stat strong { font-size: 1.9rem; }
  body .sd-ov h2,
  body .sd-faq h2 { font-size: clamp(1.45rem, 6.4vw, 1.8rem); }
  body .sd-faq-item summary { font-size: 1rem; }
}

/* contact form submit status */
.form-status { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-ok="1"] { color: #6ee7a8; }
.form-status[data-ok="0"] { color: #ff8478; }

/* ============================================================
   LIGHT / DARK — auto from system preference, with manual override.
   The cream text/lines run through --ink-rgb and the page bg through
   --bg-*, so flipping those variables re-themes the whole site.
   ============================================================ */
:root[data-theme="light"] {
  --ink-rgb: 30, 24, 23;          /* near-black text */
  --bg-top: #f6f3ec;
  --bg-bottom: #ece6da;
  --bg-glow: rgba(199, 24, 18, 0.05);
  --fx-base: #f4f1e9;
  --paper: #fbf8f1;
  --white: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1ebdf;
  --shadow-rgb: 92, 64, 58;       /* soft warm shadow instead of harsh black */
  --shadow: 0 22px 50px rgba(var(--shadow-rgb), 0.14);
  --header-bg: rgba(247, 244, 237, 0.82);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --ink-rgb: 30, 24, 23;
    --bg-top: #f6f3ec;
    --bg-bottom: #ece6da;
    --bg-glow: rgba(199, 24, 18, 0.05);
    --fx-base: #f4f1e9;
    --paper: #fbf8f1;
    --white: #ffffff;
    --panel: #ffffff;
    --panel-2: #f1ebdf;
    --shadow-rgb: 92, 64, 58;
    --shadow: 0 22px 50px rgba(var(--shadow-rgb), 0.14);
    --header-bg: rgba(247, 244, 237, 0.82);
    color-scheme: light;
  }
}

/* Light mode: heavy dark-mode shadows/glows soften into the page.
   The shadow colour flips via --shadow-rgb (above); here we tame the
   highest-alpha glows that would otherwise read as muddy smudges. */
:root[data-theme="light"] .hero-glow,
:root:not([data-theme="dark"]) .hero-glow {
  text-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.04);
  animation: none;
}
:root[data-theme="light"] .why-carousel.is-stack .why-card.stack-active,
:root[data-theme="light"] .cap-slider.is-stack .cap-card.stack-active {
  box-shadow: 0 30px 60px rgba(var(--shadow-rgb), 0.22);
}
:root[data-theme="light"] .folder-card { box-shadow: 0 20px 44px rgba(var(--shadow-rgb), 0.16); }
:root[data-theme="light"] .button.primary,
:root[data-theme="light"] button.primary { box-shadow: 0 10px 24px rgba(199, 24, 18, 0.28); }

/* Folder blog cards stay dark in both modes (the banner supplies the colour). */
.folder-card { --ink-rgb: 237, 235, 222; }

/* Stacked deck cards keep cream text only in DARK mode... */
:root[data-theme="dark"] .why-carousel.is-stack .why-card,
:root[data-theme="dark"] .cap-slider.is-stack .cap-card { --ink-rgb: 237, 235, 222; }

/* ...and turn into clean LIGHT cards (dark text) in light mode. */
:root[data-theme="light"] .why-carousel.is-stack .why-card,
:root[data-theme="light"] .cap-slider.is-stack .cap-card {
  background: linear-gradient(168deg, #ffffff 0%, #f4efe5 100%) !important;
  border: 1px solid rgba(60, 40, 38, 0.12) !important;
}
:root[data-theme="light"] .why-carousel.is-stack .why-card.stack-active,
:root[data-theme="light"] .cap-slider.is-stack .cap-card.stack-active {
  box-shadow: 0 30px 60px rgba(var(--shadow-rgb), 0.20) !important;
}

/* theme toggle — sliding sun/moon pill in the nav */
.theme-toggle {
  --tt-track: 62px;
  --tt-pad: 4px;
  --tt-knob: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: var(--tt-track); height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.07);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { border-color: rgba(255, 120, 110, 0.5); }
.theme-toggle .tt-ic { width: 14px; height: 14px; z-index: 1; transition: color 0.2s ease, opacity 0.2s ease; }
.theme-toggle .tt-sun { color: #f6b73c; }
.theme-toggle .tt-moon { color: rgba(var(--ink-rgb), 0.55); }
.theme-toggle .tt-knob {
  position: absolute;
  left: var(--tt-pad);
  top: 50%;
  width: var(--tt-knob); height: var(--tt-knob);
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb), 0.35);
  transition: transform 0.28s cubic-bezier(.4,.1,.2,1);
}
/* knob sits over the sun in light, slides to the moon in dark */
:root[data-theme="light"] .theme-toggle .tt-knob { transform: translate(0, -50%); }
:root[data-theme="dark"]  .theme-toggle .tt-knob { transform: translate(calc(var(--tt-track) - var(--tt-knob) - (var(--tt-pad) * 2)), -50%); }
:root[data-theme="dark"]  .theme-toggle .tt-sun  { opacity: 0.5; color: rgba(var(--ink-rgb), 0.55); }
:root[data-theme="dark"]  .theme-toggle .tt-moon { color: #ffd9d4; }

/* ============================================================
   LIGHT-MODE POLISH — kill the pink bleed + fix the dark mockup.
   ============================================================ */
/* 1) The big ambient red glow washes the left cards pink — tame it. */
:root[data-theme="light"] .fx-glow { opacity: 0.1; }
:root[data-theme="light"] .fx-glow-green { opacity: 0.05; }

/* 2) Cards are translucent glass, so the glow shows through unevenly
      (first card looks pink). Make them opaque in light mode. */
:root[data-theme="light"] .card {
  background: linear-gradient(180deg, #ffffff, #fbf8f1);
}

/* 3) The "device stage" preview was a hardcoded dark box floating on the
      light page. Turn the stage into a light panel; keep the phone device
      and its chips dark with cream text (a clean product showcase). */
:root[data-theme="light"] .device-stage {
  background:
    radial-gradient(circle at 72% 18%, rgba(199, 24, 18, 0.10), transparent 9rem),
    radial-gradient(circle at 20% 82%, rgba(199, 24, 18, 0.07), transparent 10rem),
    linear-gradient(145deg, #ffffff, #f3eee4 70%);
}
:root[data-theme="light"] .device-stage::before,
:root[data-theme="light"] .device-stage::after {
  color: rgb(237, 235, 222);   /* dark pill chips keep light text */
}

/* ============================================================
   TOOLS BANNER (services page) — marquee of software/tools used.
   ============================================================ */
.tools-banner {
  overflow: hidden;
  padding-top: 30px;
  padding-bottom: 30px;
}
.tools-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tools-marquee .marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 58px;
  animation: marqueeScroll 32s linear infinite;
}
.tools-marquee:hover .marquee-track { animation-play-state: paused; }
.tools-marquee .marquee-track span {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.tools-marquee .marquee-track span:hover { color: var(--red); opacity: 1; }
@media (max-width: 640px) {
  .tools-marquee .marquee-track { gap: 38px; }
  .tools-marquee .marquee-track span { font-size: 1.2rem; }
  .tools-banner-label { margin-bottom: 20px; }
}

/* ============================================================
   ARCHITECTURE CARDS — redesigned "Architecture examples" grid.
   Clean, opaque cards that read clearly in both light and dark.
   ============================================================ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.arch-card {
  padding: 30px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 18px 48px rgba(var(--shadow-rgb), 0.14);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.arch-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 120, 110, 0.45);
  box-shadow: 0 28px 64px rgba(var(--shadow-rgb), 0.2);
}
.arch-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 120, 110, 0.28);
  background: linear-gradient(150deg, rgba(199, 24, 18, 0.42), rgba(99, 1, 2, 0.24));
  color: #ff8478;
}
.arch-ic i { width: 24px; height: 24px; }
.arch-card h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
.arch-card p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 900px) { .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arch-grid { grid-template-columns: 1fr; gap: 14px; } .arch-card { padding: 24px; } }

/* Tame the ambient glow in light mode so it doesn't wash the left cards pink */
:root[data-theme="light"] .fx-glow { opacity: 0.12; }
:root[data-theme="light"] .fx-glow-red { opacity: 0.14; }

/* ============================================================
   SERVICES HERO — layered 3D dashboard scene (pure CSS, theme-aware).
   ============================================================ */
.svc-hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-top);
}
/* scrim: darken (theme-aware) behind the headline so the scene + words
   stay readable as a background, fading out to reveal them at the edges */
.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 64% at 50% 46%, var(--bg-top) 14%, transparent 72%);
}
.svc-hero-symbols { z-index: 0; }
.svc-hero-glow {
  position: absolute;
  top: 34%; left: 50%;
  width: 70%; height: 62%;
  transform: translate(-50%, -28%);
  background: radial-gradient(circle, rgba(199, 24, 18, 0.34), transparent 62%);
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.svc-hero .section-inner { position: relative; z-index: 2; width: 100%; }
.svc-hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.svc-hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.05;
  margin: 14px 0 0;
}
.svc-hero-copy .lead { margin: 20px auto 0; max-width: 620px; }
.svc-hero-copy .page-actions { justify-content: center; margin-top: 28px; }

/* the scene sits BEHIND the headline as a dimmed, animated backdrop */
.svc-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  perspective: 1700px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  pointer-events: none;
}
.svc-scene-3d {
  position: relative;
  width: min(1140px, 100%);
  height: 440px;
  transform-style: preserve-3d;
  transform: rotateX(13deg);
}
.svc-panel {
  position: absolute;
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 44px 100px rgba(var(--shadow-rgb), 0.42);
  backface-visibility: hidden;
}
.svc-panel-center {
  left: 50%; top: 8px;
  width: 420px;
  transform: translateX(-50%) translateZ(80px);
  z-index: 3;
  animation: svcFloat 7s ease-in-out infinite;
}
.svc-panel-left {
  left: 1%; top: 64px;
  width: 372px;
  transform: rotateY(32deg) translateZ(-6px);
  opacity: 0.94;
  z-index: 2;
}
.svc-panel-right {
  right: 1%; top: 64px;
  width: 372px;
  transform: rotateY(-32deg) translateZ(-6px);
  opacity: 0.94;
  z-index: 1;
}
@keyframes svcFloat {
  0%, 100% { transform: translateX(-50%) translateZ(80px) translateY(0); }
  50% { transform: translateX(-50%) translateZ(80px) translateY(-10px); }
}

/* panel header */
.svc-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.svc-ph strong { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.svc-ph-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4d; box-shadow: 0 0 10px rgba(255, 90, 77, 0.7); }
.svc-ph-tag {
  margin-left: auto;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(199, 24, 18, 0.16);
  color: #ff8478;
  border: 1px solid rgba(255, 120, 110, 0.3);
}

/* rows */
.svc-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.svc-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid; flex: none; }
.svc-pill { height: 13px; border-radius: 7px; }
.svc-dot.teal   { border-color: #2dd4bf; }   .svc-pill.teal   { background: #2dd4bf; }
.svc-dot.red    { border-color: #ff5a4d; background: #ff5a4d; }  .svc-pill.red { background: #ff5a4d; }
.svc-dot.violet { border-color: #a78bfa; }   .svc-pill.violet { background: #a78bfa; }
.svc-dot.amber  { border-color: #f6b73c; }   .svc-pill.amber  { background: #f6b73c; }
.svc-dot.green  { border-color: #34d399; }   .svc-pill.green  { background: #34d399; }
.svc-dot.muted  { border-color: rgba(var(--ink-rgb), 0.3); }
.svc-pill.muted { background: rgba(var(--ink-rgb), 0.16); }

/* mini bar chart (right panel) */
.svc-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin: 4px 0 14px; }
.svc-bars i { flex: 1; height: var(--h, 50%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ff8478, rgba(199, 24, 18, 0.4)); }

@media (prefers-reduced-motion: reduce) { .svc-panel-center { animation: none; } }

@media (max-width: 900px) {
  .svc-scene-3d { transform: rotateX(13deg) scale(0.82); }
}
@media (max-width: 640px) {
  .svc-hero { padding: 96px 18px 70px; }
  .svc-scene { margin-top: 34px; }
  .svc-scene-3d { height: 320px; transform: rotateX(10deg) scale(0.62); }
}

/* Big faint outline word centred behind each section (initSectionGhosts) */
.sec-ghost {
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(4.5rem, 15vw, 13rem);
  opacity: 1;
}
.sec-ghost-left { left: -1.5%; }
.sec-ghost-right { right: -1.5%; left: auto; }
@media (max-width: 640px) { .sec-ghost { font-size: clamp(3.5rem, 26vw, 7rem); } }

/* ============================================================
   MOBILE WEBSITE FINAL PASS
   Compact header, immediate mobile content, stronger contrast, and
   phone-specific hero/service detail rhythm.
   ============================================================ */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    z-index: 50;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px 16px;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .theme-toggle {
    --tt-track: 56px;
    --tt-knob: 22px;
    width: var(--tt-track);
    height: 30px;
    padding: 0 8px;
  }

  .theme-toggle .tt-knob {
    width: var(--tt-knob);
    height: var(--tt-knob);
  }

  :root[data-theme="dark"] .theme-toggle .tt-knob {
    transform: translate(calc(var(--tt-track) - var(--tt-knob) - (var(--tt-pad) * 2)), -50%);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    max-height: calc(100svh - 82px);
    overflow-y: auto;
    margin-top: 2px;
    padding: 10px;
    border-radius: 16px;
    background:
      radial-gradient(110% 140% at 0% 0%, rgba(199, 24, 18, 0.22), transparent 55%),
      linear-gradient(180deg, rgba(24, 14, 14, 0.98), rgba(10, 7, 7, 0.96));
    box-shadow: 0 22px 52px rgba(var(--shadow-rgb), 0.36);
  }

  :root[data-theme="light"] .nav-links {
    background:
      radial-gradient(110% 140% at 0% 0%, rgba(199, 24, 18, 0.10), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.96));
  }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 0.98rem;
  }
}

@media (max-width: 640px) {
  .fx-cinematic .reveal-on-scroll,
  .fx-cinematic .reveal-on-scroll.is-visible,
  .fx-img-reveal,
  .fx-img-reveal.is-visible,
  .sd-cover-inner,
  .sd-info > *,
  .sd-point,
  .sd-shot,
  .sd-faq {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  html.site-ready body {
    opacity: 1 !important;
    animation: none !important;
  }

  .fx-w,
  .fx-c,
  .fx-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .fx-ambient {
    background:
      radial-gradient(circle at 24% 0%, rgba(199, 24, 18, 0.22), transparent 18rem),
      linear-gradient(180deg, #150b0b 0%, #080606 52%, #050404 100%);
  }

  .fx-glow {
    filter: blur(42px);
    opacity: 0.38;
  }

  .fx-streams {
    opacity: 0.42;
  }

  .fx-grid {
    opacity: 0.32;
  }

  .hero-symbols .sym {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.36;
  }

  .hero-symbols .sym.label {
    display: none;
  }

  .fx-ghost,
  .sec-ghost {
    opacity: 0.28;
  }

  .hero-center {
    min-height: auto;
    justify-content: flex-start;
    padding: 56px 18px 38px;
  }

  .hero-spot {
    height: 62%;
    opacity: 0.8;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-center .hero-glow {
    max-width: 11ch;
    font-size: 2.72rem !important;
    line-height: 1.02;
    text-shadow:
      0 0 18px rgba(var(--ink-rgb), 0.42),
      0 0 56px rgba(199, 24, 18, 0.44);
  }

  .hero-sub {
    max-width: 31ch;
    margin-top: 18px;
    color: rgba(var(--ink-rgb), 0.84);
    font-size: 1rem !important;
    line-height: 1.55;
  }

  .hero-chips {
    display: none;
  }

  .hero-chips span {
    justify-content: center;
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .hero-actions-center,
  .page-actions,
  .sd-actions {
    width: 100%;
    max-width: 360px;
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions-center .button,
  .page-actions .button,
  .sd-actions .button,
  .contact-form button {
    width: 100%;
    min-height: 44px;
  }

  .hero-scroll {
    display: none;
  }

  .page-hero,
  .about-hero {
    padding: 72px 18px 44px;
    min-height: auto;
  }

  .page-hero .section-inner,
  .about-hero .section-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-hero h1,
  .about-hero h1 {
    max-width: 11.5ch;
    font-size: 2.15rem !important;
    line-height: 1.04 !important;
  }

  .page-hero .lead,
  .about-hero .lead,
  .svc-hero-copy .lead {
    color: rgba(var(--ink-rgb), 0.78);
    font-size: 1rem !important;
    line-height: 1.62;
  }

  .svc-hero {
    min-height: calc(100svh - 64px);
    align-items: flex-start;
    padding: 92px 18px 58px;
  }

  .svc-hero::after {
    background:
      radial-gradient(ellipse 72% 58% at 50% 42%, rgba(8, 6, 6, 0.84), transparent 68%),
      linear-gradient(180deg, rgba(8, 6, 6, 0.08), rgba(8, 6, 6, 0.72));
  }

  :root[data-theme="light"] .svc-hero::after {
    background:
      radial-gradient(ellipse 72% 58% at 50% 42%, rgba(246, 243, 236, 0.88), transparent 68%),
      linear-gradient(180deg, rgba(246, 243, 236, 0.12), rgba(246, 243, 236, 0.72));
  }

  .svc-hero-copy h1 {
    font-size: 2.45rem !important;
    line-height: 1.02;
  }

  .svc-scene {
    opacity: 0.42;
    margin-top: 0;
  }

  .svc-scene-3d {
    height: 300px;
    transform: rotateX(8deg) scale(0.58);
  }

  .band,
  .build-showcase,
  .why-candoura,
  .fx-story {
    padding-left: 18px;
    padding-right: 18px;
  }

  .why-candoura {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .why-reference .why-copy {
    margin-bottom: 22px;
  }

  .why-eyebrow {
    margin-bottom: 14px;
    padding: 8px 20px;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }

  .why-reference .why-copy h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
  }

  .why-copy p {
    max-width: 34ch;
    margin: 16px auto 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .why-carousel.is-stack .why-viewport {
    height: 392px;
    overflow: hidden;
  }

  .why-carousel.is-stack .why-card {
    width: min(88%, 330px);
    max-width: 330px;
    min-height: 286px;
    padding: 22px;
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.94) !important;
    pointer-events: none !important;
  }

  .why-carousel.is-stack .why-card.stack-active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
  }

  .why-carousel.is-stack .stack-num {
    font-size: 2.15rem;
    margin-bottom: 4px;
  }

  .why-reference .why-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .why-reference .why-icon svg {
    width: 21px;
    height: 21px;
  }

  .why-reference .why-card h3 {
    margin-top: 14px;
    font-size: 1.28rem;
  }

  .why-reference .why-card p {
    margin-top: 9px;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .why-reference .why-foot {
    padding-top: 16px;
  }

  .why-controls {
    margin-top: 18px;
  }

  .why-controls .button {
    width: min(260px, 100%);
    min-height: 44px;
  }

  .section-heading,
  .build-showcase .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-heading h2,
  .why-reference .why-copy h2,
  .fx-story-head h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
  }

  .grid.three,
  .grid.two,
  .metric-strip,
  .service-columns,
  .industry-cases,
  .arch-grid,
  .sd-points,
  .sd-deliver,
  .sd-stats,
  .footer-inner {
    grid-template-columns: 1fr !important;
  }

  .card,
  .arch-card,
  .service-columns article,
  .industry-cases article,
  .sd-point,
  .sd-stat,
  .contact-form {
    padding: 20px;
  }

  .contact-form {
    gap: 13px;
  }

  input,
  textarea,
  select {
    min-height: 46px;
    font-size: 1rem;
    background: rgba(var(--ink-rgb), 0.055);
  }

  textarea {
    min-height: 112px;
  }

  .sd-stage {
    padding-top: 0;
  }

  .sd-back {
    margin-bottom: 18px;
  }

  .sd-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sd-cover {
    min-height: 0;
    perspective: none;
  }

  .sd-cover-inner {
    width: 100%;
    min-height: 188px;
    aspect-ratio: auto;
    padding: 22px;
    border-radius: 18px;
  }

  .sd-cover-ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .sd-cover-ic i {
    width: 24px;
    height: 24px;
  }

  .sd-cover-inner strong {
    font-size: 1.35rem;
  }

  .sd-info h1 {
    font-size: 2.1rem !important;
    line-height: 1.04;
  }

  .sd-info .lead {
    font-size: 1rem;
    line-height: 1.58;
  }

  .sd-sec-label {
    margin-top: 34px;
  }

  .sd-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sd-nav a {
    min-height: 58px;
    padding: 12px 0;
  }

  .folder-card {
    border-radius: 20px !important;
  }

  body .folder-card .fc-banner {
    height: 150px;
    border-radius: 16px;
  }

  body .folder-card .fc-tab {
    max-width: calc(100% - 30px);
    margin-top: -76px;
    padding: 12px 16px 10px;
    border-radius: 16px 16px 0 0;
  }

  body .folder-card .fc-tab h3 {
    font-size: 1.08rem;
  }

  body .folder-card .fc-body {
    min-height: 168px;
    padding: 15px 16px 18px;
    border-radius: 0 16px 16px 16px;
  }
}

@media (max-width: 640px) {
  :root[data-theme="light"] .fx-ambient {
    background:
      radial-gradient(circle at 24% 0%, rgba(199, 24, 18, 0.08), transparent 18rem),
      radial-gradient(circle at 92% 28%, rgba(129, 1, 0, 0.055), transparent 15rem),
      linear-gradient(180deg, #f8f4ec 0%, #f0e8dc 54%, #e9dfd1 100%);
  }

  :root[data-theme="light"] .fx-glow {
    opacity: 0.12;
  }

  :root[data-theme="light"] .fx-glow-red {
    opacity: 0.14;
  }

  :root[data-theme="light"] .fx-glow-green {
    opacity: 0.08;
  }

  :root[data-theme="light"] .fx-grid {
    background-image:
      linear-gradient(rgba(60, 40, 38, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(60, 40, 38, 0.06) 1px, transparent 1px);
    opacity: 0.42;
  }

  :root[data-theme="light"] .fx-streams {
    opacity: 0.26;
    background:
      radial-gradient(2px 2px at 20% 30%, rgba(60, 40, 38, 0.26), transparent),
      radial-gradient(2px 2px at 70% 60%, rgba(60, 40, 38, 0.22), transparent),
      radial-gradient(1.5px 1.5px at 40% 80%, rgba(199, 24, 18, 0.24), transparent),
      radial-gradient(1.5px 1.5px at 85% 25%, rgba(60, 40, 38, 0.2), transparent),
      radial-gradient(1.5px 1.5px at 55% 15%, rgba(60, 40, 38, 0.18), transparent);
  }

  :root[data-theme="light"] .hero-spot {
    opacity: 0.7;
    background:
      radial-gradient(ellipse 42% 60% at 50% 0%, rgba(199, 24, 18, 0.09), transparent 70%),
      radial-gradient(ellipse 32% 48% at 50% 0%, rgba(30, 24, 23, 0.055), transparent 65%);
  }

  :root[data-theme="light"] .hero-symbols .sym {
    color: rgba(60, 40, 38, 0.14);
  }

  :root[data-theme="light"] .hero-symbols .sym.accent {
    color: rgba(199, 24, 18, 0.18);
  }

  :root[data-theme="light"] .hero-center .hero-glow {
    color: rgb(var(--ink-rgb));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  :root[data-theme="light"] .hero-sub,
  :root[data-theme="light"] .why-copy p,
  :root[data-theme="light"] .fx-story-head .lead {
    color: rgba(var(--ink-rgb), 0.72);
  }

  :root[data-theme="light"] .button.secondary {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(60, 40, 38, 0.14);
  }

  :root[data-theme="light"] .nav-toggle,
  :root[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(60, 40, 38, 0.14);
  }
}

/* Mobile hero/theme correction pass: keep all hero treatments compact and
   keep light/dark overlays in the same visual family. */
@media (max-width: 900px) {
  .site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-links {
    border: 1px solid rgba(var(--ink-rgb), 0.14);
  }

  :root[data-theme="dark"] .nav-links {
    background:
      radial-gradient(110% 140% at 0% 0%, rgba(199, 24, 18, 0.26), transparent 55%),
      linear-gradient(180deg, rgba(27, 16, 16, 0.98), rgba(8, 6, 6, 0.97));
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.48);
  }

  :root[data-theme="light"] .nav-links {
    color: rgb(var(--ink-rgb));
    background:
      radial-gradient(110% 140% at 0% 0%, rgba(199, 24, 18, 0.10), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 229, 0.97));
    border-color: rgba(60, 40, 38, 0.14);
    box-shadow: 0 22px 48px rgba(92, 64, 58, 0.18);
  }

  :root[data-theme="light"] .nav-links a {
    color: rgba(var(--ink-rgb), 0.82);
  }

  :root[data-theme="light"] .nav-links a:hover,
  :root[data-theme="light"] .nav-links a.active {
    color: rgb(var(--ink-rgb));
    background: rgba(199, 24, 18, 0.10);
  }

  :root[data-theme="dark"] .nav-links a {
    color: rgba(var(--ink-rgb), 0.82);
  }

  :root[data-theme="dark"] .nav-links a:hover,
  :root[data-theme="dark"] .nav-links a.active {
    color: rgb(var(--ink-rgb));
    background: rgba(199, 24, 18, 0.22);
  }

  .nav-links .nav-join,
  :root[data-theme="light"] .nav-links .nav-join,
  :root[data-theme="dark"] .nav-links .nav-join {
    color: #fff;
  }

  .hero,
  .hero-center,
  .page-hero,
  .about-hero,
  .svc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .hero-chips,
  .hero-symbols .sym.label,
  .svc-hero-symbols {
    display: none !important;
  }

  .page-hero,
  .about-hero {
    padding-top: clamp(68px, 12vw, 92px);
    padding-bottom: clamp(46px, 8vw, 66px);
    background: transparent;
  }

  .page-hero::before,
  .about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
  }

  :root[data-theme="dark"] .page-hero::before,
  :root[data-theme="dark"] .about-hero::before {
    background:
      radial-gradient(circle at 72% 10%, rgba(199, 24, 18, 0.22), transparent 17rem),
      linear-gradient(180deg, rgba(21, 11, 11, 0.68), rgba(8, 6, 6, 0.34));
  }

  :root[data-theme="light"] .page-hero::before,
  :root[data-theme="light"] .about-hero::before {
    background:
      radial-gradient(circle at 72% 8%, rgba(199, 24, 18, 0.08), transparent 16rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(246, 241, 232, 0.12));
  }

  .page-hero h1,
  .about-hero h1,
  .svc-hero-copy h1,
  .sd-info h1 {
    color: rgb(var(--ink-rgb));
    text-shadow: none;
  }

  .page-hero .lead,
  .about-hero .lead,
  .svc-hero-copy .lead,
  .sd-info .lead {
    color: rgba(var(--ink-rgb), 0.74);
  }

  .svc-hero {
    min-height: auto;
    align-items: center;
    padding: 76px 18px 62px;
    background: transparent;
  }

  .svc-hero .section-inner {
    position: relative;
    z-index: 2;
  }

  .svc-hero-copy {
    max-width: 680px;
  }

  .svc-hero-copy h1 {
    max-width: 14.8ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.28rem, 8.2vw, 3.65rem) !important;
    line-height: 1.02;
  }

  .svc-hero-copy .lead {
    max-width: 34ch;
    margin-top: 18px;
    font-size: clamp(1rem, 3vw, 1.16rem) !important;
    line-height: 1.58;
  }

  .svc-hero::after {
    z-index: 1;
  }

  :root[data-theme="dark"] .svc-hero::after {
    background:
      radial-gradient(ellipse 80% 62% at 50% 42%, rgba(8, 6, 6, 0.88) 0%, rgba(8, 6, 6, 0.78) 46%, transparent 74%),
      linear-gradient(180deg, rgba(8, 6, 6, 0.18), rgba(8, 6, 6, 0.66));
  }

  :root[data-theme="light"] .svc-hero::after {
    background:
      radial-gradient(ellipse 82% 62% at 50% 42%, rgba(248, 244, 236, 0.97) 0%, rgba(248, 244, 236, 0.88) 50%, transparent 76%),
      linear-gradient(180deg, rgba(248, 244, 236, 0.32), rgba(236, 230, 218, 0.55));
  }

  .svc-hero-glow {
    top: 42%;
    width: 88%;
    height: 58%;
    opacity: 0.32;
    filter: blur(72px);
  }

  .svc-scene {
    opacity: 0.22;
    transform: translateY(4px);
  }

  :root[data-theme="light"] .svc-scene {
    opacity: 0.12;
  }

  .svc-scene-3d {
    height: 320px;
    transform: rotateX(8deg) scale(0.7);
  }

  .button.secondary {
    color: rgb(var(--ink-rgb));
  }
}

@media (max-width: 640px) {
  .page-hero,
  .about-hero {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .svc-hero {
    padding-top: 58px;
    padding-bottom: 46px;
  }

  .svc-hero-copy h1 {
    max-width: 14.6ch;
    font-size: 2.24rem !important;
  }

  .svc-scene {
    opacity: 0.18;
  }

  :root[data-theme="light"] .svc-scene {
    opacity: 0.08;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }

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

  .hero-center .hero-glow {
    font-size: 2.4rem !important;
  }

  .hero-chips {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .page-hero h1,
  .about-hero h1,
  .svc-hero-copy h1,
  .sd-info h1 {
    font-size: 1.9rem !important;
  }
}

/* Actual site footer: use the available phone width instead of one tall column. */
@media (max-width: 640px) {
  .footer {
    padding: 42px 18px 28px;
  }

  .footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 20px;
    row-gap: 28px;
    align-items: start;
  }

  .footer .footer-inner > :first-child {
    grid-column: 1 / -1;
  }

  .footer h3 {
    margin-bottom: 10px;
    font-size: 0.98rem;
  }

  .footer ul {
    gap: 8px;
  }

  .footer a {
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.96rem;
    line-height: 1.38;
  }

  .footer .brand {
    display: inline-flex;
    font-size: 1rem;
  }

  .footer .muted {
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.56;
  }

  .footer-bottom {
    margin-top: 28px;
    font-size: 0.84rem;
    line-height: 1.55;
  }
}

@media (max-width: 360px) {
  .footer .footer-inner {
    column-gap: 14px;
  }

  .footer a {
    font-size: 0.9rem;
  }
}
