/* Premium presentation layer — depth, diagrams, showcases.
   Extends main.css. No neon, no fake dashboards. */

:root {
  --container: 1240px;
  --glow: radial-gradient(ellipse 70% 60% at 70% 20%, rgba(76, 125, 255, 0.14), transparent 62%);
}

.section { padding: 5rem 0; }
.section-intro { max-width: 40rem; margin-bottom: 2.8rem; }
.section-intro h2 { margin-bottom: 0.85rem; }
.section-intro .lead { margin: 0; }

/* Hero */
.hero {
  padding: 4.8rem 0 3.4rem;
  background: var(--glow), var(--bg);
  overflow: hidden;
}
.hero-grid {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: 3.2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hero .lead { font-size: 1.12rem; max-width: 36rem; }

.hero-stage {
  position: relative;
  min-height: 34rem;
  padding-bottom: 1.2rem;
}
.hero-grid-bg {
  position: absolute;
  inset: 0 0 8% 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 55% 40%, #000 28%, transparent 72%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: 10% 6% 16% 10%;
  background: radial-gradient(circle at 40% 30%, rgba(76, 125, 255, 0.18), transparent 55%);
  filter: blur(14px);
  pointer-events: none;
}
.hero-visual-note {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 0.9rem;
  max-width: 36rem;
}

/* Device / schematic frames */
.frame {
  background: #10182a;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: #0c1424;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.frame-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}
.frame-chrome i:nth-child(1) { background: #7f1d1d; }
.frame-chrome i:nth-child(2) { background: #854d0e; }
.frame-chrome i:nth-child(3) { background: #14532d; }
.frame-body { padding: 0; }
.frame-caption {
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 0.55rem;
  padding: 0 0.75rem 0.75rem;
}
.frame-shot {
  background: #0b1220;
}
.frame-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  vertical-align: top;
}
.shot-stack {
  display: grid;
  gap: 0.85rem;
}
.shot-stack .shot-frame:nth-child(n + 2) {
  opacity: 0.98;
}
.shot-gallery {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.2rem;
}
.shot-gallery .shot-item { margin: 0; }
.shot-gallery.pair {
  grid-template-columns: 1fr 1fr;
}
.hero-stage.hero-shot {
  min-height: 0;
  padding-bottom: 0;
}
.hero-stage.hero-shot .frame {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Application shells */
.shell {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  min-height: 0;
}
.shell-nav {
  list-style: none;
  border-right: 1px solid var(--border);
  background: #0c1424;
  padding: 0.55rem 0;
}
.shell-nav li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  padding: 0.38rem 0.7rem;
}
.shell-nav li.is-on {
  color: var(--text);
  background: rgba(76, 125, 255, 0.1);
  box-shadow: inset 2px 0 0 var(--accent);
}
.shell-work { padding: 0.7rem 0.75rem 0.8rem; }
.shell-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.shell-panels.compact { padding: 0.75rem; }
.shell-panel {
  border: 1px solid var(--border);
  background: rgba(76, 125, 255, 0.05);
  padding: 0.5rem 0.55rem 0.55rem;
  min-height: 2.45rem;
}
.shell-panel strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.shell-panel span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.16);
  margin-top: 0.28rem;
}
.shell-panel span:last-child { width: 62%; background: rgba(148, 163, 184, 0.1); }
.shell-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin-top: 0.65rem;
}
.shell-flow li {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.42rem;
  position: relative;
}
.shell-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 0.35rem;
  color: var(--muted-2);
}

.phone-mods {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0.7rem 0.2rem;
}
.phone-mods li {
  border: 1px solid var(--border);
  background: rgba(76, 125, 255, 0.06);
  padding: 0.55rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
}
.frame-phone {
  border-radius: 18px;
  max-width: 15.5rem;
}
.frame-phone .frame-chrome {
  justify-content: center;
  position: relative;
  min-height: 1.8rem;
}
.frame-phone .frame-chrome i { display: none; }
.frame-phone .notch {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 38%;
  height: 7px;
  transform: translateX(-50%);
  background: #1e293b;
  border-radius: 99px;
}
.frame-phone .frame-chrome span:not(.notch) {
  margin-top: 0.55rem;
  font-size: 0.68rem;
}
.home-bar {
  display: block;
  width: 36%;
  height: 4px;
  background: #334155;
  border-radius: 99px;
  margin: 0.35rem auto 0.55rem;
}

.hero-stage .frame-lg {
  position: relative;
  z-index: 1;
  width: 80%;
  margin-left: 18%;
}
.hero-stage .frame-md {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  width: 54%;
  z-index: 3;
}
.hero-stage .frame-phone {
  position: absolute;
  left: 0;
  bottom: 1rem;
  width: 34%;
  max-width: none;
  z-index: 4;
}

/* Tech banner */
.tech-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(76, 125, 255, 0.05), transparent 70%), var(--bg-2);
  padding: 2.4rem 0 1.6rem;
}
.tech-banner-head h2 { margin-bottom: 0.6rem; }
.tech-banner-head p { max-width: 44rem; margin-bottom: 1.4rem; }
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.tech-track li:first-child { padding-left: 2.2rem; }
.tech-marquee-inner {
  display: flex;
  width: max-content;
  animation: tech-scroll 46s linear infinite;
}
.tech-marquee:hover .tech-marquee-inner { animation-play-state: paused; }
.tech-track {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.tech-track li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.tech-svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.tech-track li:hover .tech-svg { color: var(--accent); }
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Showcases */
.showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.6rem;
  align-items: center;
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s ease;
}
.showcase.reverse { grid-template-columns: 0.8fr 1.2fr; }
.showcase.reverse .showcase-visual { order: 2; }
.showcase:hover .frame { border-color: rgba(76, 125, 255, 0.48); }
.showcase h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0.35rem 0 0.8rem; }
.showcase .more {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}
.showcase:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-top: 1rem;
}
.tag-row li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.22rem 0.5rem;
}

.mini-show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 1.9rem;
}
.mini-show { display: block; padding-bottom: 0.4rem; }
.mini-show .frame { margin-bottom: 1rem; }
.mini-show h3 { margin-bottom: 0.35rem; }
.mini-show:hover .frame { border-color: rgba(76, 125, 255, 0.45); }
.mini-show .more { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Capability rows */
.cap-row {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
}
.cap-row.reverse .cap-visual { order: -1; }
.cap-copy h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.cap-copy .more { display: inline-block; margin-top: 0.9rem; color: var(--accent); font-weight: 600; }

/* Pipelines & hubs */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  list-style: none;
  padding: 1rem 0.9rem;
}
.pipeline li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(76, 125, 255, 0.06);
  padding: 0.45rem 0.65rem;
}
.pipeline li:not(:last-child)::after {
  content: "→";
  display: inline-block;
  margin: 0 0.15rem 0 0.55rem;
  color: var(--muted-2);
}
.hub {
  padding: 0.95rem;
}
.hub-core {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid rgba(76, 125, 255, 0.45);
  background: rgba(76, 125, 255, 0.1);
  padding: 0.7rem;
  margin-bottom: 0.7rem;
}
.hub ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  list-style: none;
}
.hub li {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  text-align: center;
}

/* Architecture */
.arch-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.8rem;
  align-items: center;
}
.arch-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.3rem;
  list-style: none;
}
.arch-labels li {
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.28rem 0.55rem;
  color: var(--muted);
}
.arch-board {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(76, 125, 255, 0.06), transparent 40%),
    #0e1626;
  padding: 1.4rem 1.2rem;
}
.arch-layer {
  border: 1px solid var(--border-strong);
  background: #141c2e;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text);
}
.arch-layer.is-app {
  border-color: rgba(76, 125, 255, 0.5);
  background: rgba(76, 125, 255, 0.1);
}
.arch-join {
  display: block;
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(var(--accent), rgba(76, 125, 255, 0.15));
}
.arch-trio {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.5rem;
}
.arch-trio div {
  border: 1px solid var(--border);
  background: #0e1626;
  padding: 0.7rem 0.65rem;
  text-align: center;
}
.arch-trio strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.arch-trio span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-2);
}

/* Matrix */
.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.matrix li {
  padding: 1.15rem 1.2rem 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.matrix li:nth-child(odd) { padding-right: 1.6rem; border-right: 1px solid var(--border); }
.matrix li:nth-child(even) { padding-left: 1.6rem; }
.matrix h3 { font-size: 1rem; margin-bottom: 0.35rem; }

/* Industries */
.industry-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.35rem;
}
.industry-band a {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 0.15rem 0.7rem 0.15rem 0;
  border-right: 1px solid var(--border);
}
.industry-band a:last-child { border-right: 0; }
.industry-band a:hover { color: var(--accent); }

/* Lifecycle */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
  list-style: none;
  counter-reset: life;
  position: relative;
}
.lifecycle::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(76, 125, 255, 0.12));
}
.lifecycle li {
  padding-top: 0.95rem;
  position: relative;
}
.lifecycle li::before {
  counter-increment: life;
  content: counter(life, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.45rem;
}
.lifecycle h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.lifecycle p { font-size: 0.85rem; }

/* Reveals */
.reveal { animation: none; }
html.motion .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}
html.motion .arch-join {
  background-size: 100% 220%;
  animation: join-pulse 2.8s ease-in-out infinite;
}
@keyframes join-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .frame-md { animation: floaty 8s ease-in-out infinite; }
  .hero-stage .frame-phone { animation: floaty 9s ease-in-out 0.6s infinite; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-5px); }
}

.case-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.6rem;
  align-items: start;
}
.case-visual { position: sticky; top: 5.5rem; }

/* Inner-page heroes */
.page-hero {
  background: var(--glow), var(--bg);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(16rem, 0.95fr);
  gap: 2.8rem;
  align-items: center;
}
.page-hero-visual .eyebrow { margin-bottom: 1rem; }
.ops-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0;
  list-style: none;
}
.ops-flow li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(76, 125, 255, 0.07);
  padding: 0.5rem 0.7rem;
}
.ops-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 0.55rem;
  color: var(--muted-2);
}
html.motion .ops-flow li {
  animation: join-pulse 3.2s ease-in-out infinite;
}
html.motion .ops-flow li:nth-child(2) { animation-delay: 0.2s; }
html.motion .ops-flow li:nth-child(3) { animation-delay: 0.4s; }
html.motion .ops-flow li:nth-child(4) { animation-delay: 0.6s; }
html.motion .ops-flow li:nth-child(5) { animation-delay: 0.8s; }
html.motion .ops-flow li:nth-child(6) { animation-delay: 1s; }

/* Knowledge Centre */
.cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(76, 125, 255, 0.08), transparent 55%),
    #10182a;
  border: 1px solid var(--border);
  padding: 0.8rem 0.9rem;
}
.cover .pipeline,
.cover .hub { width: 100%; padding: 0.2rem; }
.cover-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  text-align: center;
}
.cover-split div {
  border: 1px solid var(--border);
  padding: 1rem 0.7rem;
  background: rgba(76, 125, 255, 0.06);
}
.cover-split strong { display: block; color: var(--text); margin-bottom: 0.3rem; }
.cover-split span, .cover-split p { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.cover-compare { width: 100%; }
.cover-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  margin: 0.2rem 0 0.15rem;
}
.kc-heading {
  font-size: 1.15rem;
  margin: 2.4rem 0 1.1rem;
  letter-spacing: -0.02em;
}
.article-shot {
  margin: 1.6rem 0 1.8rem;
}
.article-shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
}
.kc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.kc-filters button {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.kc-filters button[aria-pressed="true"],
.kc-filters button:hover { color: var(--text); border-color: var(--accent); }
.kc-feature, .kc-card {
  display: grid;
  gap: 1.1rem;
  color: inherit;
}
.kc-feature {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding-bottom: 2.4rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.kc-feature h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0.35rem 0 0.7rem; }
.kc-feature .btn { margin-top: 0.9rem; }
.kc-mix {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 1.6rem 1.8rem;
  margin-bottom: 2rem;
}
.kc-mix .kc-card:first-child { grid-row: 1 / span 2; }
.kc-rest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.8rem;
}
.kc-card { padding-bottom: 0.4rem; }
.kc-card h3 { margin: 0.3rem 0 0.45rem; }
.kc-feature:hover .cover,
.kc-card:hover .cover { border-color: rgba(76, 125, 255, 0.48); }
.cap-copy h2 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); margin: 0.3rem 0 0.75rem; }
.cap-copy .hero-actions .more + .more { margin-left: 1rem; }

@media (max-width: 1080px) {
  .hero-grid,
  .showcase,
  .showcase.reverse,
  .cap-row,
  .cap-row.reverse,
  .arch-layout,
  .case-layout,
  .page-hero-grid,
  .kc-feature,
  .kc-mix,
  .kc-rest { grid-template-columns: 1fr; }
  .kc-mix .kc-card:first-child { grid-row: auto; }
  .showcase-copy, .cap-copy { order: 1; }
  .showcase-visual, .cap-visual { order: 2; }
  .showcase.reverse .showcase-visual,
  .cap-row.reverse .cap-visual { order: 2; }
  .case-visual { position: static; order: 2; }
  .hero-stage { min-height: 0; margin-top: 0.5rem; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .lifecycle::before { display: none; }
  .matrix { grid-template-columns: 1fr; }
  .matrix li:nth-child(odd),
  .matrix li:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .tech-marquee-inner { animation: none; }
  .tech-marquee { mask-image: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mini-show-grid { grid-template-columns: 1fr; }
  .arch-trio { grid-template-columns: 1fr; }
  .shot-gallery.pair { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-stage .frame-lg,
  .hero-stage .frame-md,
  .hero-stage .frame-phone {
    position: relative;
    width: 100%;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin-bottom: 0.75rem;
  }
  .hero-stage { min-height: 0; }
  .hero-stage .frame-md,
  .hero-stage .frame-phone { animation: none; }
  .hero-stage .frame-phone { max-width: 16rem; }
  .lifecycle { grid-template-columns: 1fr; }
  .industry-band a {
    font-size: 1.25rem;
    border-right: 0;
    width: 100%;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
  }
  .section { padding: 3.2rem 0; }
  .shell { grid-template-columns: 6.2rem 1fr; }
  .pipeline li:not(:last-child)::after { margin-left: 0.35rem; }
  .kc-rest { grid-template-columns: 1fr; }
  .ops-flow li:not(:last-child)::after { margin-left: 0.4rem; }
  /* Cropped preview so dashboard chrome stays readable; full image on the project page. */
  .frame-shot {
    max-height: 16rem;
    overflow: hidden;
  }
  .frame-shot img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    object-position: top left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tech-marquee-inner,
  .hero-stage .frame-md,
  .hero-stage .frame-phone,
  .arch-join,
  .ops-flow li,
  .reveal { animation: none !important; opacity: 1; transform: none; }
}
