:root {
  --brand: #7a2f45;
  --brand-dark: #5b2334;
  --cream: #f6f3ec;
  --background: #fafaf8;
  --ink: #0d1a30;
  --rose: #c9738c;
  --muted: #5b6675;
  --border: #e7e2d8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  position: relative;
  letter-spacing: -0.01em;
}
/* Subtle grain layer, fixed to the viewport -- the kind of texture that
   reads as "considered" rather than a flat corporate template. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--rose) 45%, var(--brand) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
  html { scroll-behavior: auto; }
}

/* Scroll-reveal: elements fade + rise into place the first time they
   cross into view. IntersectionObserver toggles .is-visible (see the
   script in the footer partial); falls back to fully visible with JS
   disabled since .reveal alone only sets the *starting* state. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Put .reveal-stagger on a grid/flex container -- its direct children
   fade in individually, staggered, once the container crosses into
   view (JS toggles .is-visible on the container itself, no need to
   observe each child separately). */
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

header.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link { font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a.link:hover, .nav-links a.link.active { color: var(--brand); }

.nav-dropdown { position: relative; }
.nav-dropdown .link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-dropdown .caret { width: 0.55rem; height: 0.55rem; transition: transform 0.2s ease; }
.nav-dropdown:hover .caret, .nav-dropdown:focus-within .caret { transform: rotate(180deg); }
/* .dropdown-panel is the hoverable hit area -- it starts flush against
   the trigger (top:100%, no margin) and uses padding-top instead of
   margin to create the visual gap, so there's no dead zone between the
   link and the panel that would otherwise break the :hover chain the
   instant the cursor crosses it. The actual visible box is the nested
   .dropdown-panel-inner. */
.nav-dropdown .dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 30rem; padding-top: 0.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown-panel-inner {
  padding: 0.75rem;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 48px -18px rgba(13,26,48,0.28);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
}
.dropdown-panel a.drop-item {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.7rem;
  border-radius: 10px; text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.dropdown-panel a.drop-item:hover { background: var(--cream); }
.dropdown-panel a.drop-item .icon-badge {
  width: 2.1rem; height: 2.1rem; border-radius: 9px; flex-shrink: 0; margin-bottom: 0;
}
.dropdown-panel a.drop-item .icon-badge svg { width: 1.1rem; height: 1.1rem; }
.dropdown-panel a.drop-item h4 { font-size: 0.86rem; font-weight: 700; margin: 0 0 0.15rem; font-family: 'Geist', Arial, Helvetica, sans-serif; }
.dropdown-panel a.drop-item p { font-size: 0.76rem; color: var(--muted); margin: 0; line-height: 1.35; }
.dropdown-panel .drop-all {
  grid-column: 1 / -1; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--brand);
  text-decoration: none; padding: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.25rem;
}
@media (max-width: 820px) {
  .nav-dropdown .dropdown-panel { display: none; }
}
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.4rem; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--brand); color: var(--cream); box-shadow: 0 6px 16px -8px rgba(122,47,69,0.55); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(122,47,69,0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { border: 1px solid var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .btn-secondary:hover, .btn-primary:active, .btn-secondary:active { transform: none; }
}

section { padding: 5.5rem 0; }
section.alt { background: var(--cream); }
section.dark { background: var(--ink); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--cream); }
section.dark p { color: #b7c0cc; }
section.tight { padding: 3.5rem 0; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Decorative gradient-mesh backdrop -- gives depth without needing photography.
   Sits behind hero/CTA content via z-index, blurred blobs in the brand palette. */
.mesh { position: relative; overflow: hidden; isolation: isolate; }
.mesh::before, .mesh::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.35;
}
.mesh::before {
  width: 26rem; height: 26rem; background: radial-gradient(circle, var(--rose), transparent 70%);
  top: -8rem; left: -6rem; animation: drift-a 16s ease-in-out infinite;
}
.mesh::after {
  width: 22rem; height: 22rem; background: radial-gradient(circle, var(--brand), transparent 70%);
  bottom: -10rem; right: -4rem; opacity: 0.28; animation: drift-b 20s ease-in-out infinite;
}
section.dark.mesh::before { opacity: 0.5; }
section.dark.mesh::after { opacity: 0.4; }
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2.5rem, 2rem) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2rem, -1.5rem) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .mesh::before, .mesh::after { animation: none; }
}

/* Homepage hero only: the default .mesh blobs are pseudo-elements, which
   JS can't move directly (no DOM node to attach an inline transform to).
   Swap them out for a real, scroll-transformed wrapper here so the
   background can visibly parallax against the hero content as you scroll. */
.hero.mesh::before, .hero.mesh::after { content: none; }
.hero-parallax { position: absolute; inset: -4rem; z-index: -1; pointer-events: none; }
.hero-parallax .blob { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-parallax .blob-a {
  width: 26rem; height: 26rem; background: radial-gradient(circle, var(--rose), transparent 70%);
  top: -4rem; left: -2rem; opacity: 0.45; animation: drift-a 16s ease-in-out infinite;
}
.hero-parallax .blob-b {
  width: 22rem; height: 22rem; background: radial-gradient(circle, var(--brand), transparent 70%);
  bottom: -6rem; right: 0; opacity: 0.38; animation: drift-b 20s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-parallax .blob { animation: none; }
}

.hero { padding: 5.5rem 0 4rem; text-align: center; }
.eyebrow-top { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); display: block; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; max-width: 42rem; margin: 0 auto 1.25rem; }
.hero p.sub { max-width: 36rem; margin: 0 auto 2.25rem; color: var(--muted); font-size: 1.1rem; }
.hero .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Floating "product panel" -- an abstract, stylized card motif (bars, dots,
   a badge) suggesting the product's data-density without pretending to be
   a literal screenshot. Tilted slightly for a 3D, elevated feel. */
.hero-panel-wrap { display: flex; justify-content: center; padding: 0 1.5rem; }
.hero-panel {
  width: 100%; max-width: 46rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 30px 60px -20px rgba(13, 26, 48, 0.25), 0 2px 8px rgba(13,26,48,0.06);
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.4s ease;
}
.hero-panel:hover { transform: perspective(1200px) rotateX(1deg) translateY(-4px); }
.hero-panel .panel-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.hero-panel .panel-row:last-child { margin-bottom: 0; }
.hero-panel .panel-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-align: left; }
.hero-panel .panel-value { font-family: Georgia, serif; font-size: 1.15rem; color: var(--ink); }
.hero-panel .bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; margin: 0 1rem; }
.hero-panel .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--rose)); }
.hero-panel .pill { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(122,47,69,0.1); color: var(--brand); }

/* Real app screenshots, presented in a simple browser-chrome frame so
   they read as "the actual product" rather than a bare cropped image. */
.browser-frame {
  max-width: 62rem; margin: 0 auto;
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 70px -25px rgba(13,26,48,0.35), 0 2px 8px rgba(13,26,48,0.08);
  transform: perspective(1400px) rotateX(2deg);
  transition: transform 0.4s ease;
}
.browser-frame:hover { transform: perspective(1400px) rotateX(0.5deg) translateY(-4px); }
.browser-frame .chrome {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; background: var(--cream); border-bottom: 1px solid var(--border);
}
.browser-frame .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border); }
.browser-frame .url-bar {
  flex: 1; margin-left: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.9rem; font-size: 0.78rem; color: var(--muted); text-align: center;
}
.browser-frame img { display: block; width: 100%; height: auto; }

/* For cropped, card-level app screenshots (a single chart/panel rather
   than a full page) -- an elevated frame without browser chrome, since
   wrapping an already-bordered card image in a second chrome bar reads
   as redundant. */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 62rem; margin: 0 auto; }
.shot-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; max-width: 74rem; }
.shot-frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 48px -20px rgba(13,26,48,0.3), 0 2px 8px rgba(13,26,48,0.06);
  transform: perspective(1400px) rotateX(1.5deg);
  transition: transform 0.35s ease;
}
.shot-frame:hover { transform: perspective(1400px) rotateX(0deg) translateY(-4px); }
.shot-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .shot-grid, .shot-grid.cols-3 { grid-template-columns: 1fr; }
}

.screenshot-wrap { padding: 0 1.5rem 1rem; }
.screenshot-wrap.mesh { overflow: visible; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); max-width: 40rem; margin: 0 0 1rem; }
.page-hero p.sub { max-width: 38rem; color: var(--muted); font-size: 1.08rem; margin: 0 0 1.75rem; }

.protocol-strip { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.protocol-strip span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.section-head { text-align: center; max-width: 38rem; margin: 0 auto 3.25rem; }
.section-head.left { text-align: left; margin: 0 0 2.5rem; }
.section-head .eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.5rem; display: block; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.section-head p { color: var(--muted); margin-top: 0.85rem; font-size: 1.02rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.value-grid .num {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--rose), var(--brand));
  box-shadow: 0 10px 20px -8px rgba(122,47,69,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
}
.value-grid h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-grid p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.75rem; perspective: 1000px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 1.75rem; text-align: left;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 26px 40px -18px rgba(13,26,48,0.22), 0 2px 4px rgba(13,26,48,0.06);
}
section.alt .card { background: rgba(255,255,255,0.85); }
section.dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: 0 16px 32px -18px rgba(0,0,0,0.4); }
.card .icon-badge { margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
section.dark .card p { color: #b7c0cc; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.6rem; }

.icon-badge {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffffff, var(--cream));
  box-shadow: 0 10px 18px -10px rgba(122,47,69,0.35), inset 0 1px 1px rgba(255,255,255,0.8), inset 0 -1px 1px rgba(122,47,69,0.08);
  color: var(--brand);
}
.icon-badge svg { width: 1.4rem; height: 1.4rem; }
section.dark .icon-badge { background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)); color: var(--rose); }

.platform-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; perspective: 1000px; }
.platform-nav-grid a.tile {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; padding: 1.75rem;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-nav-grid a.tile:hover {
  border-color: rgba(122,47,69,0.35);
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 0 28px 42px -18px rgba(13,26,48,0.24), 0 2px 4px rgba(13,26,48,0.06);
}
.platform-nav-grid a.tile h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.platform-nav-grid a.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.platform-nav-grid a.tile .arrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; margin-top: 0.85rem; display: inline-block; }

.capabilities-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; max-width: 46rem; margin: 0 auto; }
.capabilities-list li { font-size: 0.98rem; padding-left: 1.5rem; position: relative; }
.capabilities-list li::before { content: "—"; position: absolute; left: 0; color: var(--rose); }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: 40rem; margin: 0 auto; }
.steps li { position: relative; padding: 0 0 2rem 3rem; border-left: 2px solid var(--border); margin-left: 1rem; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1.1rem; top: 0; width: 2.2rem; height: 2.2rem;
  background: linear-gradient(145deg, var(--rose), var(--brand)); color: var(--cream); border-radius: 50%;
  box-shadow: 0 10px 18px -8px rgba(122,47,69,0.5), inset 0 1px 1px rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.about-body { max-width: 42rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; }

.photo-frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(13,26,48,0.3);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 50rem; margin: 3rem auto 0; }
.about-photos .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .about-photos { grid-template-columns: 1fr; }
}

/* Interactive 3D architecture diagram -- pure CSS 3D transforms, no
   WebGL/Three.js dependency. Drag (or auto-rotate when idle) spins the
   stack around the Y axis via JS updating one custom property. */
.scene-3d-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.scene-3d {
  width: 100%; max-width: 40rem; height: 26rem;
  perspective: 1400px;
  cursor: grab;
  user-select: none; touch-action: none;
}
.scene-3d:active { cursor: grabbing; }
.scene-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(var(--scene-rotate, 0deg));
}
.layer-card {
  position: absolute; left: 50%; top: 50%;
  width: 20rem; height: 6.5rem;
  margin-left: -10rem; margin-top: -3.25rem;
  transform-style: preserve-3d;
}
.card-face {
  position: absolute; inset: 0;
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem;
  backface-visibility: hidden;
  box-shadow: 0 20px 40px -15px rgba(13,26,48,0.4);
  border: 1px solid rgba(255,255,255,0.5);
}
.card-face.card-back { transform: rotateY(180deg); }
.card-face .layer-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.card-face h4 { font-family: Georgia, serif; font-size: 1.15rem; margin: 0 0 0.3rem; }
.card-face p { font-size: 0.78rem; margin: 0; opacity: 0.85; }
.layer-banks { transform: translateZ(7rem) translateY(-7rem); }
.layer-core { transform: translateZ(0) translateY(0); z-index: 2; }
.layer-systems { transform: translateZ(-7rem) translateY(7rem); }
.layer-banks .card-face, .layer-systems .card-face { background: linear-gradient(145deg, #f0e2e6, #e6ccd4); color: var(--brand-dark); }
.layer-core .card-face { background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: var(--cream); }
.scene-connector {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 5.2rem;
  background: repeating-linear-gradient(180deg, var(--rose) 0 4px, transparent 4px 8px);
  transform-style: preserve-3d;
}
.scene-connector.top { transform: translateX(-1px) translateY(-6.5rem) translateZ(3.5rem) rotateX(90deg); }
.scene-connector.bottom { transform: translateX(-1px) translateY(1.3rem) translateZ(-3.5rem) rotateX(90deg); }
.scene-hint { font-size: 0.8rem; color: var(--muted); }
.scene-hint svg { width: 0.9rem; height: 0.9rem; vertical-align: -0.1rem; }
@media (prefers-reduced-motion: reduce) {
  .scene-inner { transition: none !important; }
}
@media (max-width: 640px) {
  .scene-3d { height: 22rem; }
  .layer-card { width: 15rem; margin-left: -7.5rem; height: 5.5rem; }
}

/* Solutions page tree diagram -- same card-face system as the Technology
   page's stacked scene, arranged as a root + two branches instead of a
   stack. Connector length/position is solved geometrically so each line
   starts and ends exactly at the card's edge (not its center) -- root and
   branches sit 2x the card's half-height apart, so every connector crosses
   the near card's border at exactly a quarter of the way along its length,
   the same fraction at both ends. */
.tree-3d-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tree-3d {
  width: 100%; max-width: 40rem; height: 24rem;
  perspective: 1400px;
  cursor: grab;
  user-select: none; touch-action: none;
}
.tree-3d:active { cursor: grabbing; }
.tree-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(var(--tree-rotate, 0deg));
}
.tree-node {
  position: absolute; left: 50%; top: 50%;
  width: 16rem; height: 6rem;
  margin-left: -8rem; margin-top: -3rem;
  transform-style: preserve-3d;
}
.tree-root { transform: translateY(-6rem); z-index: 2; }
.tree-erp { transform: translateX(-9rem) translateY(6rem) translateZ(3rem); }
.tree-banks { transform: translateX(9rem) translateY(6rem) translateZ(-3rem); }
.tree-root .card-face { background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: var(--cream); }
.tree-erp .card-face, .tree-banks .card-face { background: linear-gradient(145deg, #f0e2e6, #e6ccd4); color: var(--brand-dark); }
.tree-connector {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 7.5rem;
  background: repeating-linear-gradient(180deg, var(--rose) 0 4px, transparent 4px 8px);
  transform-style: preserve-3d;
  transform-origin: top center;
}
.tree-connector.to-erp { transform: translateY(-3rem) translateX(-2.25rem) translateZ(1.5rem) rotate(36.87deg); }
.tree-connector.to-banks { transform: translateY(-3rem) translateX(2.25rem) translateZ(-1.5rem) rotate(-36.87deg); }
@media (max-width: 640px) {
  .tree-3d { height: 20rem; }
  .tree-node { width: 12rem; height: 5.5rem; margin-left: -6rem; margin-top: -2.75rem; }
  .tree-root { transform: translateY(-5.5rem); }
  .tree-erp { transform: translateX(-5.5rem) translateY(5.5rem) translateZ(3rem); }
  .tree-banks { transform: translateX(5.5rem) translateY(5.5rem) translateZ(-3rem); }
  .tree-connector { height: 6.15rem; }
  .tree-connector.to-erp { transform: translateY(-2.75rem) translateX(-1.375rem) translateZ(1.5rem) rotate(26.57deg); }
  .tree-connector.to-banks { transform: translateY(-2.75rem) translateX(1.375rem) translateZ(-1.5rem) rotate(-26.57deg); }
}

/* Interactive sample-data dashboard (Treasury Management solutions page) --
   real hover-driven SVG bar/line charts built at runtime from JS data, not
   a static screenshot. All figures are illustrative placeholders. */
.demo-dashboard {
  position: relative;
  border: 1px solid var(--border); border-radius: 20px; background: #fff;
  padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(13,26,48,0.18);
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
  background: rgba(122,47,69,0.08); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem;
}
.demo-badge .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #2fa86b; }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 0.9rem; }
.demo-stat { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; background: var(--cream); }
.demo-stat .label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.demo-stat .value { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 1.2rem; color: var(--ink); margin-top: 0.3rem; }
.demo-stat .value.pos { color: #1a7f4b; }
.demo-stat .value.warn { color: #b8791f; }
.demo-stat .value.neg { color: #b23b3b; }
.demo-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.9rem; }
.demo-charts-row.cols-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.demo-dashboard.no-stats { padding: 1.1rem; }
.demo-chart-card { border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem 0.6rem; background: #fff; position: relative; }
.demo-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; gap: 0.5rem; }
.demo-chart-head h4 { font-size: 0.85rem; font-family: 'Geist', Arial, Helvetica, sans-serif; color: var(--ink); margin: 0; }
.demo-select {
  font-size: 0.72rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.25rem 0.5rem;
  color: var(--muted); background: var(--cream); font-family: inherit; cursor: pointer;
}
.demo-chart-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.demo-bar { fill: var(--brand); opacity: 1; transition: opacity 0.15s ease; cursor: pointer; }
.demo-bar.dim { opacity: 0.25; }
.demo-axis-label { fill: var(--muted); font-size: 10px; font-family: 'Geist', Arial, Helvetica, sans-serif; }
.demo-gridline { stroke: var(--border); stroke-width: 1; }
.demo-line-path { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.demo-line-path.dashed { stroke: var(--rose); stroke-dasharray: 5 4; }
.demo-line-dot { fill: var(--brand); stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.demo-line-dot.rose { fill: var(--rose); }
.demo-legend { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.demo-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.demo-legend .swatch { width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--brand); }
.demo-legend .swatch.rose { background: var(--rose); }
.demo-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink); color: var(--cream); font-size: 0.72rem; line-height: 1.35;
  padding: 0.4rem 0.6rem; border-radius: 8px; box-shadow: 0 12px 24px -10px rgba(13,26,48,0.4);
  opacity: 0; transform: translate(-50%, -110%); transition: opacity 0.12s ease;
  white-space: nowrap;
}
.demo-tooltip.visible { opacity: 1; }
@media (max-width: 820px) {
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-charts-row, .demo-charts-row.cols-3 { grid-template-columns: 1fr; }
}

/* Flat radial hub diagram (Solutions page) -- a static, hover-interactive
   wheel rather than a rotating 3D scene: Ledgestra at the center, the five
   solutions as clickable wedges around it. Wedge and label-arc geometry is
   precomputed (not hand-guessed) so the curved text and wedge borders line
   up exactly; see gen_radial2.js in the working notes for the derivation. */
.radial-wrap { display: flex; justify-content: center; }
.radial-diagram { width: 100%; max-width: 34rem; height: auto; }
.radial-wedge { fill: #182747; transition: fill 0.2s ease; }
.radial-wedge.alt { fill: #40233a; }
.radial-wedge-link:hover .radial-wedge, .radial-wedge-link:focus .radial-wedge { fill: var(--brand); }
.radial-wedge-link { cursor: pointer; }
.radial-label {
  fill: var(--cream); font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em;
  font-family: 'Geist', Arial, Helvetica, sans-serif;
}
.radial-bullet {
  fill: #aab3c4; font-size: 12.5px;
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  transition: fill 0.2s ease;
}
.radial-wedge-link:hover .radial-bullet, .radial-wedge-link:focus .radial-bullet { fill: var(--cream); }
.radial-hub-title { fill: var(--cream); font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 27px; }
.radial-hub-sub { fill: rgba(246,243,236,0.75); font-size: 12px; font-family: 'Geist', Arial, Helvetica, sans-serif; }
@media (prefers-reduced-motion: reduce) {
  .radial-wedge, .radial-bullet { transition: none; }
}

.faq-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.faq-panel {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18);
}
.faq-panel .panel-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.faq-panel .panel-head .icon-badge { margin-bottom: 0; }
.faq-panel .panel-head h3 { font-size: 1.05rem; }
.faq-panel details {
  border-bottom: 1px solid var(--border); padding: 0.85rem 0;
}
.faq-panel details:last-of-type { border-bottom: none; padding-bottom: 0; }
.faq-panel details:first-of-type { padding-top: 0; }
.faq-panel summary {
  cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after {
  content: "+"; color: var(--brand); font-size: 1.1rem; font-weight: 400; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-panel details[open] summary::after { transform: rotate(45deg); }
.faq-panel details p { font-size: 0.87rem; color: var(--muted); margin: 0.6rem 0 0; line-height: 1.6; }
@media (max-width: 900px) {
  .faq-panels { grid-template-columns: 1fr; }
}

.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; max-width: 68rem; margin: 0 auto; }
.office-grid .card { text-align: center; }
.office-grid .icon-badge { margin: 0 auto 1rem; }
.office-grid h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.office-grid p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }
.office-grid a { color: var(--brand); font-weight: 600; text-decoration: none; }
.office-grid a:hover { text-decoration: underline; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; max-width: 62rem; margin: 0 auto; }
.contact-layout .photo-frame { aspect-ratio: 3 / 4; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .photo-frame { display: none; }
}

.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.cta-final .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
section.dark .btn-secondary { border-color: rgba(255,255,255,0.25); color: var(--cream); }
section.dark .btn-secondary:hover { border-color: var(--rose); color: var(--rose); }

.contact-box {
  max-width: 34rem; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 20px 40px -20px rgba(13,26,48,0.2);
}
.contact-box p { color: var(--muted); margin-bottom: 1.75rem; }
.contact-box a.email { font-weight: 600; color: var(--brand); text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 50rem; margin: 0 auto; }

.contact-form {
  max-width: 34rem; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 20px 40px -20px rgba(13,26,48,0.2);
}
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form .field.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.9rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122,47,69,0.12);
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[type="submit"] {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
}
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.contact-form .form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.contact-form .form-status { font-size: 0.88rem; margin-top: 1rem; text-align: center; }
.contact-form .form-status.success { color: #2f7a4d; }
.contact-form .form-status.error { color: #b3323a; }

.contact-alt { text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: 0.92rem; }
.contact-alt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .contact-form .field.split { grid-template-columns: 1fr; }
}

footer.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer.site-footer p { color: var(--muted); font-size: 0.85rem; margin: 0; }
footer.site-footer .foot-links { display: flex; gap: 1.5rem; }
footer.site-footer .foot-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
footer.site-footer .foot-links a:hover { color: var(--brand); }
footer.site-footer .foot-contact a { color: var(--muted); text-decoration: none; }
footer.site-footer .foot-contact a:hover { color: var(--brand); }

@media (max-width: 820px) {
  .nav-links .link { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .capabilities-list { grid-template-columns: 1fr; }
  .platform-nav-grid { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
