/* ==========================================================================
   co-home.css - HOME PAGE SECTIONS ONLY.
   Shared chrome/tokens/base/dark-mode now live in co-base.css (loaded first).
   This file holds only home-specific section styles + the home responsive
   block + hero variants + the fan motif. Do NOT add chrome/token rules here.
   ========================================================================== */

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(16px, 2.4vw, 40px); }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,14,18,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,14,18,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
}
.hero__title { font-size: clamp(2.9rem, 6.3vw, 5rem); margin: 22px 0; }
.hero__title-accent { color: var(--co-blue); }
.hero__title .nowrap { white-space: nowrap; }
.hero__sub { max-width: 30ch; }
.hero__support { margin-top: 18px; max-width: 44ch; color: var(--co-fg-subtle); font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- System visual ---- */
.hero__visual { display: grid; place-items: center; }
.sysviz {
  position: relative; width: min(100%, 480px); aspect-ratio: 1 / 1;
}
.sysviz__orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.sysviz__node { fill: var(--co-blue); }
.sysviz__node.n1 { animation: nodepulse 3.2s ease-in-out infinite; }
.sysviz__node.n2 { fill: var(--co-ink); animation: nodepulse 3.2s ease-in-out infinite .8s; }
.sysviz__node.n3 { animation: nodepulse 3.2s ease-in-out infinite 1.6s; }
@keyframes nodepulse { 0%,100% { opacity:.35; r:4; } 50% { opacity:1; r:6.5; } }

.sysviz__stack {
  position: absolute; inset: 0; margin: auto;
  width: 78%; height: 78%;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  transform: rotate(-7deg);
}
.layer {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--co-border);
  box-shadow: var(--co-shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.layer--ai   { animation-delay: 0s;   }
.layer--app  { animation-delay: .4s; margin-left: 18px; }
.layer--arch { animation-delay: .8s; }
.layer--data { animation-delay: 1.2s; margin-left: 12px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.layer__tag {
  font-family: var(--co-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em;
  color: #fff; background: var(--co-ink);
  padding: 4px 8px; border-radius: 6px; flex: none;
}
.layer--arch .layer__tag, .layer--data .layer__tag { background: var(--co-blue); }
.layer__label { font-size: 14px; font-weight: 500; color: var(--co-fg); flex: 1; }
.layer__dots { display: flex; gap: 4px; flex: none; }
.layer__dots i { width: 6px; height: 6px; border-radius: 2px; background: var(--co-200); }
.layer--data .layer__dots i, .layer--arch .layer__dots i { background: var(--co-blue-tint-2); }

.sysviz__chip {
  position: absolute; font-family: var(--co-mono); font-size: 12px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px; box-shadow: var(--co-shadow-sm);
  background: #fff; border: 1px solid var(--co-border); white-space: nowrap;
}
.sysviz__chip--code { top: 4%; left: 0; color: var(--co-fg-muted); }
.sysviz__chip--system {
  bottom: 6%; right: -2%; color: #fff; background: var(--co-blue); border-color: var(--co-blue);
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 9px 14px; border-radius: 14px; text-align: left;
}
.sysviz__chip--system .kicker {
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, #fff 72%, var(--co-blue)); line-height: 1;
}
.sysviz__chip--system .main { font-size: 13px; font-weight: 600; line-height: 1.15; }

/* ---- Trust strip ---- */
.trust {
  position: relative; margin-top: clamp(36px, 5vw, 64px);
  padding: 28px 0 clamp(44px, 6vw, 76px); border-top: 1px solid var(--co-border);
  display: flex; align-items: center; gap: 32px; flex-wrap: nowrap;
}
.trust__label { font-family: var(--co-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--co-fg-subtle); flex: none; }
.trust__marquee { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.trust__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: trust-scroll 34s linear infinite; }
.trust__marquee:hover .trust__track { animation-play-state: paused; }
.trust__track img { height: 38px; width: auto; flex: none; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.trust__track img:hover { opacity: .95; filter: grayscale(0); }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; flex-wrap: wrap; } }
@media (max-width: 720px) { .trust { flex-wrap: wrap; gap: 18px; } .trust__marquee { flex-basis: 100%; } }

/* ============================ PROBLEM ============================ */
.problem__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 56px;
}
.problem__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prob-card {
  background: #fff; border: 1px solid var(--co-border); border-radius: var(--co-r-lg);
  padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--co-shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--co-shadow-sm); border-color: var(--co-blue-tint-2); }
.prob-card__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--co-blue-tint); color: var(--co-blue); border: 1px solid var(--co-blue-tint-2);
}
.prob-card__ic svg { width: 22px; height: 22px; }
.prob-card h3 { font-size: 1.16rem; letter-spacing: -0.01em; line-height: 1.3; }
.prob-card p { font-size: 15.5px; color: var(--co-fg-muted); line-height: 1.55; }
.compare {
  margin-top: 40px; display: flex; width: max-content; margin-left: auto; align-items: center; gap: 16px;
  background: var(--co-ink); color: #fff; border-radius: 999px; padding: 13px 24px;
  box-shadow: var(--co-shadow-md);
}
.compare__a { font-family: var(--co-mono); font-size: 13px; letter-spacing: .04em; color: #AEB6C0; }
.compare__arr { color: var(--co-blue-tint-2); display: grid; place-items: center; }
.compare__b { font-family: var(--co-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

/* ============================ POSITIONING ============================ */
.positioning { position: relative; overflow: hidden; }
.positioning__deco {
  position: absolute; top: 50%; right: -120px; width: 460px; height: 460px;
  transform: translateY(-50%) rotate(11deg);
  filter: blur(8px); opacity: .35; pointer-events: none;
}
.positioning__deco::before, .positioning__deco::after {
  content: ""; position: absolute; inset: 0; border-radius: 40px;
}
.positioning__deco::before { /* gray second card, fanned behind */
  background: linear-gradient(135deg, rgba(216,223,232,.55), rgba(216,223,232,0));
  transform: rotate(-8deg); transform-origin: 55% 85%;
}
.positioning__deco::after {  /* front card — v4 blurred glow, no dimming opacity */
  background: linear-gradient(135deg, rgba(0,113,188,.5), rgba(0,113,188,0));
}
.positioning__inner { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; }
.positioning__copy { max-width: 560px; padding-top: 6px; }
.pos-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pos-points li { display: flex; gap: 14px; align-items: flex-start; }
.pos-points li svg { width: 22px; height: 22px; color: #5AA9E2; flex: none; margin-top: 2px; }
.pos-points b { color: #fff; font-weight: 600; }
.pos-points span { color: #AEB6C0; font-size: 16px; line-height: 1.55; }
/* ---- Positioning: plain-language benefit panel (no tech terms) ---- */
.poseasy { display: flex; flex-direction: column; gap: 14px; }
.poseasy [data-reveal] { transition-duration: 1.15s !important; }
.poseasy__lead {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 22px 24px; border-radius: 16px;
  background: radial-gradient(130% 130% at 0% 0%, rgba(0,113,188,.22), transparent 60%), linear-gradient(180deg, #0f1722, #0b0f15);
  border: 1px solid rgba(90,169,226,.4);
  box-shadow: 0 0 0 1px rgba(0,113,188,.12), 0 22px 60px -30px rgba(0,113,188,.6);
}
.poseasy__lead strong { display: block; font-family: var(--co-display); font-size: 22px; line-height: 1.2; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.poseasy__lead p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #AEB6C0; }
.poseasy__lead::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.04) 42%, rgba(160,210,255,.20) 48%, rgba(255,255,255,.55) 50%, rgba(160,210,255,.20) 52%, rgba(255,255,255,.04) 58%, transparent 70%);
  background-size: 280% 100%; background-position: 180% 0; mix-blend-mode: screen;
  animation: poscapShimmer 9s linear infinite;
}
@keyframes poscapShimmer {
  0%   { background-position: 180% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .poseasy__lead::after { animation: none; }
}
.poseasy__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.poseasy__list li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 17px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); transition: border-color .3s ease, transform .3s ease; }
.poseasy__list li:hover { border-color: rgba(90,169,226,.4); transform: translateX(3px); }
.poseasy__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(90,169,226,.14); border: 1px solid rgba(90,169,226,.24); color: #5AA9E2; }
.poseasy__ic svg { width: 20px; height: 20px; }
.poseasy__txt strong { display: block; font-size: 15.5px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.poseasy__txt span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: #AEB6C0; }
.positioning__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 22px 0 26px; }
.positioning__hl { color: #5AA9E2; }
.positioning__line { margin-top: 40px; font-size: clamp(1.2rem,2vw,1.6rem); font-weight: 500; color: #fff; }
.positioning__line-mono { font-family: var(--co-mono); color: #5AA9E2; font-weight: 400; }

/* ============================ SERVICES ============================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.co-service { position: relative; }
.co-service__num { position: absolute; top: 28px; right: 30px; }
.co-service--featured {
  border-color: var(--co-blue);
  background: linear-gradient(180deg, var(--co-blue-tint), #fff 62%);
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--co-blue) 55%, transparent);
}

.services__cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--co-bg-muted); border: 1px solid var(--co-border); border-radius: var(--co-r-lg);
  padding: 26px 32px;
}
.services__cta p { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; color: var(--co-fg); }

/* ---- Services: view switch + "Komplettpaket" (plain-language) panel ---- */
.services__switch {
  display: inline-flex; gap: 5px; padding: 5px;
  background: var(--co-bg-muted); border: 1px solid var(--co-border);
  border-radius: 999px; margin-bottom: 44px;
}
.svc-tab {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--co-sans); font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--co-fg-muted);
  background: transparent; border: none;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.svc-tab__sub {
  font-family: var(--co-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--co-fg-subtle);
}
.svc-tab[aria-selected="true"] { background: var(--co-0); color: var(--co-fg); box-shadow: var(--co-shadow-sm); }
.svc-tab[aria-selected="true"] .svc-tab__sub { color: var(--co-blue); }
.svc-tab:hover:not([aria-selected="true"]) { color: var(--co-fg); }

.services__panel[hidden] { display: none; }

.simple { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 26px; align-items: start; }
.simple__promise { padding: 38px 36px; position: relative; }
.simple__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--co-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--co-blue); font-weight: 500; margin-bottom: 16px;
}
.simple__kicker::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--co-blue); transform: rotate(12deg); }
.simple__promise h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.1; margin-bottom: 14px; }
.simple__promise > p { color: var(--co-fg-muted); font-size: 16.5px; line-height: 1.6; }
.simple__included { list-style: none; margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid var(--co-border); display: flex; flex-direction: column; gap: 14px; }
.simple__included li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--co-fg); line-height: 1.45; }
.simple__included .ck { width: 22px; height: 22px; border-radius: 7px; flex: none; margin-top: 1px; background: var(--co-blue-tint); color: var(--co-blue); border: 1px solid var(--co-blue-tint-2); display: grid; place-items: center; }
.simple__included .ck svg { width: 13px; height: 13px; }

.simple__steps { display: flex; flex-direction: column; }
.simple__step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-bottom: 30px; position: relative; }
.simple__step:last-child { padding-bottom: 0; }
.simple__step::before { content: ""; position: absolute; left: 25px; top: 56px; bottom: -2px; width: 2px; background: var(--co-border); }
.simple__step:last-child::before { display: none; }
.simple__badge {
  width: 52px; height: 52px; border-radius: 15px; flex: none;
  display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--co-mono); font-size: 18px; font-weight: 600; color: #fff;
  background: linear-gradient(155deg, #1a86d8, var(--co-blue));
  box-shadow: 0 9px 20px -9px rgba(0,113,188,.6);
}
.simple__step h4 { font-size: 1.22rem; margin: 8px 0 7px; }
.simple__step p { color: var(--co-fg-muted); font-size: 15.5px; line-height: 1.58; max-width: 54ch; }

/* Service cards as links to the detail page */
.co-service__cover { position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
.co-service__more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--co-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--co-blue); font-weight: 500;
}
.co-service__more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.co-card--hover.co-service:hover .co-service__more svg { transform: translateX(4px); }
.co-service__num { z-index: 4; }

/* Switch-to-tech action row in the Komplettpaket CTA */
.cta-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Offset the in-page scroll target under the sticky header */
#services { scroll-margin-top: 96px; }
#work, #about { scroll-margin-top: 96px; }
#contact { scroll-margin-top: 96px; }

/* ============================ AUDIENCE ============================ */
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--co-border); border-radius: var(--co-r-lg);
  padding: 24px; box-shadow: var(--co-shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.aud-card:hover { transform: translateY(-3px); box-shadow: var(--co-shadow-sm); border-color: var(--co-blue-tint-2); }
.aud-card__check {
  width: 30px; height: 30px; border-radius: 9px; flex: none; margin-top: 2px;
  background: var(--co-blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px -5px color-mix(in srgb, var(--co-blue) 70%, transparent);
}
.aud-card__check svg { width: 17px; height: 17px; }
.aud-card h3 { font-size: 1.04rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.aud-card p { font-size: 14.5px; color: var(--co-fg-muted); line-height: 1.5; }

/* ---- Dark variant: #audience is now a co-bg-ink section (mirrors the .co-bg-ink .case recipe) ---- */
.audience { position: relative; overflow: clip; }
.audience .co-container { position: relative; z-index: 1; }
.co-bg-ink .aud-card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.10); box-shadow: none; }
.co-bg-ink .aud-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.20); box-shadow: 0 20px 48px rgba(0,0,0,.45); }
.co-bg-ink .aud-card h3 { color: #F3F5F8; }
.co-bg-ink .aud-card p { color: #AEB6C0; }
/* Fanned highlight card: opaque dark fill so the blue leaf only peeks at the splayed edges
   (overrides the base .co-fan__front white !important) */
.co-bg-ink .aud-card.co-fan__front {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.5) !important;
}
.co-bg-ink .aud-card.co-fan__front:hover {
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 24px 46px -18px rgba(0,0,0,.55) !important;
}
/* Bottom-right blue/gray fan card — sticks within the section while you scroll over it.
   The absolute, full-height track is the sticky containing block; the deco pins to the
   lower-right and only releases when the section scrolls past. (Mirror of .cta__deco.) */
.audience__deco-track {
  position: absolute; top: 0; bottom: 0; right: -2%; width: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none; z-index: 0;
}
.audience__deco {
  position: sticky; bottom: 80px; width: 300px; height: 300px;
  transform: rotate(-18deg);
  filter: blur(7px); opacity: .5;
}
.audience__deco::before, .audience__deco::after {
  content: ""; position: absolute; inset: 0; border-radius: 36px;
}
.audience__deco::before { /* gray second card, fanned behind */
  background: linear-gradient(135deg, rgba(216,223,232,.6), rgba(216,223,232,.07));
  transform: rotate(9deg); transform-origin: 55% 15%;
}
.audience__deco::after {  /* front card — blue glow */
  background: linear-gradient(135deg, rgba(0,113,188,.85), rgba(0,113,188,.15));
}

/* ============================ PROCESS ============================ */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process__step { position: relative; padding: 0 24px 0 0; }
.process__step::before {
  content: ""; position: absolute; top: 13px; left: 0; right: 24px; height: 1px; background: var(--co-border-2);
}
.process__step::after {
  content: ""; position: absolute; top: 8px; left: 0; width: 11px; height: 11px; border-radius: 3px;
  background: var(--co-blue); transform: rotate(12deg);
}
.process__num { display: block; font-family: var(--co-mono); font-size: 13px; color: var(--co-fg-subtle); margin-top: 30px; letter-spacing: .1em; }
.process__step h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.process__step p { color: var(--co-fg-muted); font-size: 15px; line-height: 1.5; padding-right: 8px; }

/* ============================ WORK ============================ */
.work__featured { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--co-border); border-radius: var(--co-r-lg);
  overflow: hidden; box-shadow: var(--co-shadow-xs);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--co-shadow-md); }
.case--featured { grid-column: 1 / -1; flex-direction: row; }
.case--featured .case__media { aspect-ratio: auto; width: 40%; flex: none; border-bottom: none; border-right: 1px solid var(--co-border); display: grid; place-items: center; padding: 28px; }
.case--featured .case__media img { width: auto; height: auto; max-width: 62%; max-height: 56%; object-fit: contain; border-radius: var(--co-r-lg); }
.case--featured .case__body { flex: 1; padding: 32px 34px; justify-content: center; }
@media (max-width: 820px) {
  .case--featured { flex-direction: column; }
  .case--featured .case__media { width: 100%; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--co-border); padding: 0; }
  .case--featured .case__media img { max-width: 46%; max-height: 64%; }
}
.case__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--co-100); border-bottom: 1px solid var(--co-border); position: relative; }
/* Dark gradient over the card pictures: deepest at the top, fading to transparent at the bottom. */
.case__media:not(.case__media--logo):not(.case__media--ph)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top left, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 46%, rgba(0,0,0,0) 100%);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__media--logo { display: grid; place-items: center; padding: 24px; }
.case__media--logo img { width: auto; height: auto; max-width: 72%; max-height: 76%; object-fit: contain; border-radius: 12px; }
.case__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case__top h3 { font-size: 1.2rem; }
.case__type { font-family: var(--co-mono); font-size: 11px; letter-spacing: .06em; color: var(--co-blue); background: var(--co-blue-tint); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
/* Flagship hero cards (Raw Energy + vispecs) */
.case--hero { position: relative; }
.case--hero .case__media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--co-border); background: #0E141C; }
.case--hero .case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case--hero .case__body { padding: 26px 30px 28px; gap: 14px; }
.case--hero .case__top h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.case--hero .case__problem { font-size: 15px; -webkit-line-clamp: 2; }
.case__flag { position: absolute; bottom: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-family: var(--co-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--co-blue); padding: 6px 11px; border-radius: 7px; box-shadow: 0 4px 14px rgba(20,90,200,.28); }
.case__flag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
/* Placeholder media for assets we don't have yet */
.case__media--ph { position: relative; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 11px, rgba(255,255,255,.02) 11px 22px) !important; }
.case__media--ph .ph-label { font-family: var(--co-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8FB3D6; background: rgba(255,255,255,.06); padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(143,179,214,.28); }
/* Dark cards on the ink background */
.co-bg-ink .case { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.10); box-shadow: none; }
.co-bg-ink .case:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.20); box-shadow: 0 20px 48px rgba(0,0,0,.45); }
.co-bg-ink .case__top h3 { color: #F3F5F8; }
.co-bg-ink .case__problem { color: #AEB6C0; }
.co-bg-ink .case__media { border-bottom-color: rgba(255,255,255,.10); background: #0E141C; }
.co-bg-ink .case__type { color: #6FB6E8; background: rgba(0,113,188,.20); }
.co-bg-ink .case__stack { border-top-color: rgba(255,255,255,.10); }
.co-bg-ink .case__stack li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #B6BEC9; }
@media (max-width: 820px) { .work__featured { grid-template-columns: 1fr; } }
.case__problem { font-size: 14.5px; color: var(--co-fg-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case__stack { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--co-border); display: flex; flex-wrap: wrap; gap: 7px; }
.case__stack li { font-family: var(--co-mono); font-size: 11px; letter-spacing: .03em; color: var(--co-fg-muted); background: var(--co-100); border: 1px solid var(--co-border); padding: 4px 9px; border-radius: 6px; }
.work__note { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--co-fg-muted); font-size: 15px; }
.co-bg-ink .work__note { color: #AEB6C0; }

/* ---- Work section: distinct background (deeper ink + masked grid + ambient glow) ---- */
.work { position: relative; overflow: hidden; background: radial-gradient(140% 120% at 50% -10%, #0E141C 0%, #070A0E 60%, #05080B 100%); }
.work > .co-container { position: relative; z-index: 2; }
.work__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(115% 80% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(115% 80% at 50% 0%, #000 0%, transparent 70%);
}
.work__glow {
  position: absolute; z-index: 1; pointer-events: none;
  top: -160px; left: 50%; transform: translateX(-50%);
  width: 920px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,113,188,.30), rgba(0,113,188,.08) 55%, transparent 78%);
  filter: blur(28px); opacity: .85;
}

/* ---- Card glow: ambient blue lift + cursor-tracking spotlight ---- */
.work .case { isolation: isolate; }
.work .case::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0,113,188,.22), transparent 60%);
}
.work .case:hover::before { opacity: 1; }
.work .case > * { position: relative; z-index: 1; }
.co-bg-ink.work .case:hover {
  border-color: rgba(0,113,188,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,113,188,.25), 0 0 40px -8px rgba(0,113,188,.45);
}


/* ============================ ABOUT ============================ */
.about-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.about-head .co-eyebrow { margin-bottom: 18px; }
.about__founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder {
  margin: 0; display: grid; grid-template-columns: 168px 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--co-border); border-radius: var(--co-r-lg);
  overflow: hidden; box-shadow: var(--co-shadow-xs);
  transition: transform .25s ease, box-shadow .25s ease;
}
.founder:hover { transform: translateY(-4px); box-shadow: var(--co-shadow-md); }
.founder__photo {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #EAF1FA, #DCE7F5);
}
.founder__photo img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; object-fit: cover; }
.founder figcaption { padding: 26px 26px 24px; }
.founder figcaption strong { display: block; font-size: 21px; font-family: var(--co-display); letter-spacing: -0.02em; margin-bottom: 3px; }
.founder figcaption .role { display: block; font-family: var(--co-mono); font-size: 12.5px; letter-spacing: .03em; color: var(--co-blue); line-height: 1.4; }
.founder figcaption p { margin-top: 14px; font-size: 14.5px; color: var(--co-fg-muted); line-height: 1.55; }
.founder__socials { display: flex; gap: 10px; margin-top: 18px; }
.founder__socials a {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--co-border); color: var(--co-fg-muted); transition: .2s;
}
.founder__socials a:hover { border-color: var(--co-blue); color: var(--co-blue); }
.founder__socials svg { width: 15px; height: 15px; }
.about__principles { margin-top: 56px; }
.about__principles .co-eyebrow { margin-bottom: 22px; }
.about__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--co-border); border-radius: var(--co-r); padding: 17px 20px; box-shadow: var(--co-shadow-xs); }
.principle .pn { font-family: var(--co-mono); font-size: 13px; color: var(--co-blue); font-weight: 500; flex: none; }
.principle h4 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }

/* ============================ CTA ============================ */
.cta { position: relative; overflow: hidden; }
.cta__deco {
  position: absolute; top: -80px; right: 8%; width: 300px; height: 300px;
  transform: rotate(18deg);
  filter: blur(2px); opacity: .5; pointer-events: none;
}
.cta__deco::before, .cta__deco::after {
  content: ""; position: absolute; inset: 0; border-radius: 36px;
}
.cta__deco::before { /* gray second card, fanned behind */
  background: linear-gradient(135deg, rgba(216,223,232,.6), rgba(216,223,232,.07));
  transform: rotate(-9deg); transform-origin: 55% 85%;
}
.cta__deco::after {  /* front card — v4 blurred glow, no dimming opacity */
  background: linear-gradient(135deg, rgba(0,113,188,.85), rgba(0,113,188,.15));
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 56px; align-items: center; }
.cta__text { max-width: 640px; }
.cta__title { font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 22px 0 26px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================ CONTACT ============================ */
.contact__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact__details { margin: 38px 0 0; display: flex; flex-direction: column; gap: 20px; }
.cd-row { display: flex; align-items: center; gap: 16px; }
.cd-row .ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--co-blue-tint); color: var(--co-blue); border: 1px solid var(--co-blue-tint-2); }
.cd-row .ic svg { width: 20px; height: 20px; }
.cd-row .lbl { font-family: var(--co-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--co-fg-subtle); margin-bottom: 3px; }
.cd-row .val { font-size: 16px; font-weight: 500; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--co-fg); }
/* Required (*) / optional field markers + the form legend */
.field__req { color: var(--co-blue); font-weight: 600; margin-left: 3px; }
.field__opt { color: var(--co-fg-subtle); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.form__legend { margin: 8px 0 0; font-size: 12.5px; font-weight: 400; color: var(--co-fg-subtle); }
.form__legend .field__req { margin-left: 0; margin-right: 4px; }
.field input, .field select, .field textarea {
  font-family: var(--co-sans); font-size: 15px; color: var(--co-fg);
  padding: 12px 14px; border: 1px solid var(--co-border-2); border-radius: var(--co-r-sm);
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--co-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--co-blue); box-shadow: 0 0 0 3px rgba(0,113,188,.15);
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--co-500); pointer-events: none; }
.form__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__hint { font-size: 14px; color: var(--co-fg-muted); }
.form__hint.ok { color: #1F8A5B; }
.form__hint.err { color: #C2410C; }
.form__alt { margin-top: 22px; }
.form__alt-rule { display: block; height: 1px; background: var(--co-border-2); margin-bottom: 20px; }
.form__alt-cta { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--co-border-2); border-radius: var(--co-r-sm); text-decoration: none; color: var(--co-fg); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.form__alt-cta:hover { border-color: var(--co-ink); background: var(--co-50); }
.form__alt-cal { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--co-r-sm); background: var(--co-ink); color: #fff; }
.form__alt-cal svg { width: 20px; height: 20px; }
.form__alt-copy { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.form__alt-line { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; color: var(--co-ink); }
.form__alt-sub { font-size: 13.5px; color: var(--co-fg-muted); }
.form__alt-cta .arrow { flex: none; width: 18px; height: 18px; color: var(--co-fg-muted); transition: transform .2s ease; }
.form__alt-cta:hover .arrow { transform: translateX(3px); color: var(--co-ink); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1040px) {
  .services__grid, .audience__grid, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .problem__grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .process__step::before { display: none; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  /* Claim on top: copy block first, visual below */
  .hero__copy { order: 0; }
  .hero__visual { order: 1; max-width: 100%; }
  .problem__head { grid-template-columns: 1fr; gap: 24px; }
  .about-head { grid-template-columns: 1fr; gap: 22px; }
  .about__founders { grid-template-columns: 1fr; }
  .positioning__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta__inner { grid-template-columns: 1fr; gap: 30px; }
  .positioning__deco, .cta__deco, .audience__deco-track { display: none; }
}
@media (max-width: 600px) {
  /* ---- Hero: claim leads, copy fills, visual scaled to fit ---- */
  .hero__title .nowrap { white-space: normal; }
  .hero__title { font-size: clamp(2.2rem, 8.4vw, 3.1rem); margin: 14px 0 16px; }
  .hero__sub, .hero__support { max-width: none; }
  .hero__cta { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero__cta .co-btn { justify-content: center; }
  .hero__cta .fanbtn { display: flex; width: 100%; }
  .hero__cta .fanbtn .co-btn { width: 100%; }

  .services__grid, .audience__grid, .work__grid, .problem__grid, .process, .principles { grid-template-columns: 1fr; }
  .simple { grid-template-columns: 1fr; }
  /* Compare pill was width:max-content -> wider than the screen -> page overflow. Let it wrap. */
  .compare { max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding: 12px 18px; }
  /* Services switch: stack each tab's sub under its label and allow it to shrink so both tabs fit. */
  .services__switch { width: 100%; }
  .svc-tab { flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; font-size: 14px; }
  .services__cta { flex-direction: column; align-items: flex-start; }
  .contact__form { grid-template-columns: 1fr; }
  /* Founder cards: photo as a full-height left rail, cleanly cropped */
  .founder { grid-template-columns: 104px 1fr; gap: 16px; align-items: stretch; }
  .founder__photo { width: 104px; height: auto; min-height: 100%; }
  .founder__photo img { position: static; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .founder figcaption { padding: 20px 18px 20px 4px; }
  .trust { gap: 14px; justify-content: center; text-align: center; padding-top: 22px; }
  .trust__label { width: 100%; text-align: center; }
  .trust__logos { gap: 20px 26px; justify-content: center; width: 100%; }
  .trust__logos img { height: 26px; }
}

/* ============================ HERO VARIANTS (tweakable) ============================ */
.hero[data-hero="minimal"] .hero__visual { display: none; }
.hero[data-hero="minimal"] .hero__inner { grid-template-columns: 1fr; text-align: center; max-width: 940px; margin-inline: auto; }
.hero[data-hero="minimal"] .hero__sub,
.hero[data-hero="minimal"] .hero__support { margin-inline: auto; }
.hero[data-hero="minimal"] .co-eyebrow { justify-content: center; }
.hero[data-hero="minimal"] .hero__cta { justify-content: center; }
.hero[data-hero="minimal"] .hero__title { font-size: clamp(3rem, 8vw, 6rem); }

/* layers orbit — moving dots riding the orbit lines */
.sysviz__sat { fill: var(--co-blue); }
.sysviz__sat--ink { fill: var(--co-ink); }

/* ============================ HERO — BRICKS VARIANT ============================ */
/* A tower built from stacked rounded blocks (BASE -> CORE -> UX -> AI) that
   constructs itself from the foundation up. Default hero. */
.brickviz { display: none; }
.hero[data-hero="bricks"] .sysviz { display: none; }
.hero[data-hero="bricks"] .brickviz {
  display: flex; flex-direction: column; align-items: stretch;
  width: min(100%, 500px); margin-inline: auto;
  gap: 13px; padding-top: 6px;
}

/* crown marker planted on top of the finished tower (right-aligned) */
.brickviz__crown {
  align-self: flex-end; margin-right: 6px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--co-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--co-blue);
  background: #fff; border: 1px solid var(--co-blue-tint-2);
  padding: 10px 15px; border-radius: 999px;
  box-shadow: var(--co-shadow-sm);
}
.brickviz__crown::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--co-blue); transform: rotate(12deg);
}
.brickviz__crown .crown-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; text-align: left; }
.brickviz__crown .kicker { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--co-fg-subtle); font-weight: 500; }
.brickviz__crown .main { font-size: 13px; font-weight: 600; color: var(--co-blue); }

/* the wall — each course: a colored tag brick + layer-style keyword blocks, right-aligned */
.brickviz__tower { display: flex; flex-direction: column; gap: 13px; }
.brick-row { display: flex; gap: 12px; align-items: stretch; justify-content: flex-end; width: 100%; }

/* solid colored tag brick (AI / UX / CORE / BASE) — the dark-to-light ramp */
.tag-brick {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  padding: 19px 22px; border-radius: 15px;
  font-family: var(--co-mono); font-size: 14px; font-weight: 600; letter-spacing: .1em;
  box-shadow: 0 16px 28px -16px rgba(11,14,18,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.tag-brick--base { background: var(--co-ink); color: #fff; }
.tag-brick--core { background: color-mix(in srgb, var(--co-blue) 56%, #000); color: #fff; }
.tag-brick--app  { background: var(--co-blue-600); color: #fff; }
.tag-brick--ai {
  position: relative; background: transparent; color: #fff; box-shadow: none;
}
.tag-brick--ai::before, .tag-brick--ai::after {
  content: ""; position: absolute; inset: 0; border-radius: 15px;
}
.tag-brick--ai::before { /* light-gray second card, fanned behind */
  background: linear-gradient(155deg, #e4e9f0, #cdd4dd);
  transform: rotate(-12deg); transform-origin: 58% 88%;
  box-shadow: 0 18px 34px -14px rgba(15,52,99,.45), 0 6px 14px -8px rgba(15,52,99,.3);
}
.tag-brick--ai::after { /* front tile — CodeOrbit blue */
  background: var(--co-blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.tag-brick--ai > span { position: relative; z-index: 1; }

/* layer-style keyword block (white card, like the layers hero) */
.key-brick {
  display: flex; align-items: center; gap: 12px;
  padding: 19px 22px; border-radius: 15px; white-space: nowrap;
  background: #fff; border: 1px solid var(--co-border);
  box-shadow: var(--co-shadow-md);
  font-size: 16px; font-weight: 500; color: var(--co-fg); letter-spacing: -.01em;
}
.key-brick::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; flex: none;
  background: var(--co-blue-tint-2);
}

/* foundation line with the raw "code" material feeding in (right-aligned) */
.brickviz__ground { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; margin-top: 3px; }
.brickviz__ground .brick__chip {
  font-family: var(--co-mono); font-size: 12px; font-weight: 500; flex: none;
  color: var(--co-fg-muted); background: #fff;
  border: 1px solid var(--co-border); padding: 6px 11px; border-radius: 999px;
  box-shadow: var(--co-shadow-sm);
}
.brickviz__ground::after {
  content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--co-border-2) 0 9px, transparent 9px 15px);
}

/* build-up: each block rises into place, bottom (--bi:0) first.
   Gated on .co-build (added by JS) so bricks stay visible if it never fires. */
@keyframes brickRise {
  from { opacity: 0; transform: translateY(32px) scale(.96); }
  to   { opacity: 1; }
}
.hero[data-hero="bricks"].co-build .brick-anim,
.hero[data-hero="fullstack"].co-build .brick-anim {
  animation: brickRise .55s cubic-bezier(.2,.75,.25,1) both;
  animation-delay: calc(var(--bi, 0) * .07s);
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-hero="bricks"].co-build .brick-anim,
  .hero[data-hero="fullstack"].co-build .brick-anim { animation: none; }
}

/* default: build wrapper is transparent so the bricks layout is unchanged */
.brickviz__build { display: contents; }
.brickviz__span { display: none; }

/* ---- Full-stack variant: the bricks tower + an "all levels" coverage rail ---- */
.hero[data-hero="fullstack"] .sysviz { display: none; }
.hero[data-hero="fullstack"] .brickviz {
  display: flex; flex-direction: row; align-items: stretch;
  gap: clamp(12px, 1.8vw, 20px);
  width: min(100%, 560px); margin-inline: auto;
}
.hero[data-hero="fullstack"] .brickviz__build {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
}
.hero[data-hero="fullstack"] .brickviz__span {
  display: flex; flex-direction: row; align-items: stretch; gap: 10px; flex: none;
}
.span__bracket { display: flex; flex-direction: column; align-items: center; }
.span__cap { width: 14px; height: 3px; border-radius: 3px; background: var(--co-blue); flex: none; }
.span__rail {
  width: 3px; flex: 1; min-height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--co-blue), var(--co-blue-700));
}
.span__node {
  width: 11px; height: 11px; border-radius: 4px; flex: none; margin: 7px 0;
  background: var(--co-blue); transform: rotate(12deg);
  box-shadow: 0 0 0 4px var(--co-blue-tint);
}
.span__label { display: flex; align-items: center; gap: 11px; writing-mode: vertical-rl; }
.span__label svg { width: 18px; height: 18px; color: var(--co-blue); flex: none; }
.span__label span {
  font-family: var(--co-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--co-fg-muted);
}
@media (max-width: 600px) {
  .hero[data-hero="fullstack"] .brickviz { gap: 9px; }
  .span__label span { font-size: 11px; letter-spacing: .1em; }
  /* ---- Bricks scaled so each course holds one line on phones ---- */
  .hero[data-hero="bricks"] .brickviz,
  .hero[data-hero="fullstack"] .brickviz { width: 100%; gap: 9px; }
  .brickviz__tower { gap: 9px; }
  .brick-row { flex-wrap: wrap; gap: 7px; }
  .tag-brick { padding: 12px 13px; font-size: 11px; letter-spacing: .06em; border-radius: 11px; }
  .key-brick { padding: 12px 13px; font-size: 12px; gap: 7px; border-radius: 11px; }
  .key-brick::before { width: 7px; height: 7px; }
  .brickviz__crown { font-size: 12px; padding: 9px 13px; }
  .brickviz__crown .main { font-size: 12px; }
  .brickviz__crown .kicker { font-size: 9px; }
}

/* Tweaks panel removed (was design-tool edit-mode scaffolding). */

/* ============================ V5 — Aufgefächerte Karten (Fan-Highlight) ============================ */
/* A fan of cards: the content card sits upright in front; two blue cards are splayed behind it
   like a hand of cards. Applied to ONE highlighted box per section. Extra row-gap gives the
   upward splay room so it never collides with the card above. */
#problem .problem__grid { row-gap: 32px; }
#audience .audience__grid { row-gap: 34px; }
.co-fan { position: relative; display: flex; flex-direction: column; }
.co-fan > .co-fan__front { position: relative; z-index: 2; flex: 1 1 auto; width: 100%; }
.co-fan__leaf {
  position: absolute; inset: 0; z-index: 1; border-radius: var(--co-r-lg);
  transform-origin: 50% 94%; pointer-events: none;
  box-shadow: 0 20px 42px -20px rgba(15,52,99,.5);
}
.co-fan__leaf--1 { transform: rotate(-3deg);    background: linear-gradient(158deg,#6fa0db 0%, #3f7cc6 100%); }
.co-fan__leaf--2 { transform: rotate(-11.5deg); background: linear-gradient(158deg,#5b93d5 0%, #2a63b5 100%); }

/* Simple panel: the back card swings open like a fan on scroll-in, then the steps 1–4 stagger in */
#svc-panel-simple .co-fan__leaf--1 { transform: rotate(2deg); }
@media (prefers-reduced-motion: no-preference) {
  #svc-panel-simple .co-fan.in .co-fan__leaf--1 {
    animation: fanSwingIn 1s cubic-bezier(.2,.72,.25,1) .15s both;
  }
}
@keyframes fanSwingIn {
  0%   { transform: rotate(2deg); }
  55%  { transform: rotate(-6deg); }
  100% { transform: rotate(-3deg); }
}
.js #svc-panel-simple .simple__step[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
}
.js #svc-panel-simple .simple__step[data-reveal].in { opacity: 1; transform: none; }
#svc-panel-simple .simple__step[data-reveal]:nth-of-type(1) { transition-delay: .55s; }
#svc-panel-simple .simple__step[data-reveal]:nth-of-type(2) { transition-delay: .73s; }
#svc-panel-simple .simple__step[data-reveal]:nth-of-type(3) { transition-delay: .91s; }
#svc-panel-simple .simple__step[data-reveal]:nth-of-type(4) { transition-delay: 1.09s; }
@media (prefers-reduced-motion: reduce) {
  #svc-panel-simple .co-fan__leaf--1 { transform: rotate(-3deg); }
}

.co-fan__front {
  background: #ffffff !important;
  border-color: rgba(47,108,192,.22) !important;
  box-shadow: 0 16px 34px -16px rgba(15,52,99,.42) !important;
}
.co-fan__front:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 46px -18px rgba(15,52,99,.5) !important;
  border-color: rgba(47,108,192,.34) !important;
}
/* Problem section: flipped fan — blue front, light-gray leaf */
#problem .co-fan__front {
  background: var(--co-blue) !important;
  border-color: var(--co-blue-700) !important;
  box-shadow: 0 14px 30px -18px rgba(15,23,42,.32) !important;
}
#problem .co-fan__front:hover {
  border-color: var(--co-blue-700) !important;
  box-shadow: 0 18px 36px -18px rgba(15,23,42,.36) !important;
}
#problem .co-fan__front h3 { color: #fff; }
#problem .co-fan__front p { color: rgba(255,255,255,.82); }
#problem .co-fan__front .prob-card__ic {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
#problem .co-fan__leaf--1 {
  background: var(--co-200);
  border: 1px solid var(--co-300);
  box-shadow: none;
}

@media (max-width: 900px) {
  .co-fan__leaf--1 { transform: rotate(-2.5deg); }
  .co-fan__leaf--2 { transform: rotate(-9deg); }
}
