/* Keep the original hanging badge swing; only its phone link navigates. */
.badge-hit { position: absolute; z-index: 2; left: 154px; top: 480px; width: 278px; height: 470px; pointer-events: auto; }
.badge-card { padding: 22px 15px 0; pointer-events: none; cursor: default; }
.badge-motion { rotate: 0deg; transition: rotate .65s cubic-bezier(.22,.75,.25,1); }
.badge-label { color: #285042; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding-bottom: 9px; border-bottom: 1px solid #213c3380; }
.badge-headline { font-size: 28px; font-weight: 850; letter-spacing: -.035em; line-height: 1.06; margin-top: 13px; }
.badge-capabilities { font-size: 13px; color: #35554a; font-weight: 680; line-height: 1.35; margin: 11px 0 14px; }
.badge-proof { display: block; padding: 10px 0 12px; border-block: 1px solid #213c334f; }
.badge-proof div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.badge-proof dd { font: 400 34px/.99 Anton, sans-serif; color: #164e36; }
.badge-proof dt { color: #24473b; font-size: 12px; line-height: 1.16; font-weight: 750; }
.badge-cta { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 4px; background: #194333; color: #f3f8e8; font-size: 14px; line-height: 1.1; font-weight: 800; text-decoration: none; pointer-events: auto; cursor: pointer; transition: background .2s; }
.badge-cta svg { flex: none; }
.badge-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge-cta:focus-visible { outline: 3px solid #fffde8; outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .badge-hit:hover + .badge-motion { rotate: 2.5deg; }
}

/* The laptop holds a gallery of product windows. */
.laptop-menu { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; gap: 4cqw; padding: 5% 7% 2.5%; background: radial-gradient(ellipse at 12% 10%, #325c45, #112e26 68%); }
.laptop-menu h2 { font-size: clamp(1.2rem, 6.5cqw, 4.7rem); }
.laptop-projects { align-self: center; grid-template-columns: .92fr 1.16fr .92fr; align-items: center; gap: clamp(10px, 3.4cqw, 40px); border: 0; perspective: 900px; }
.laptop-projects a,
.laptop-projects a:last-child { display: grid; gap: .5rem; align-content: start; padding: .55rem; border: 1px solid #e2f6b74d; background: #e0e8d9; color: #122d23; border-radius: 6px; box-shadow: 0 8px 12px #051d1799; transition: border-color .18s ease, box-shadow .18s ease; font-size: clamp(.67rem, 2.23cqw, 1.3rem); }
.laptop-projects a:nth-child(1) { transform: translateY(7px) rotate(-2deg); }
.laptop-projects a:nth-child(3) { transform: translateY(7px) rotate(2deg); }
.laptop-projects a[data-featured="true"] { z-index: 2; transform: translateY(-3px); border-color: #e2f6b7; box-shadow: 0 14px 24px #051d17b8; }
.laptop-projects a:not([data-featured="true"]) { opacity: .94; }
.laptop-projects a:hover, .laptop-projects a:focus-visible { border-color: #e2f6b7; box-shadow: 0 14px 24px #051d17c9; }
.laptop-cover { display: block; aspect-ratio: 1.54; overflow: hidden; border: 1px solid #122d2333; background: #365448; }
.laptop-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.laptop-caption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem .25rem; line-height: 1.08; }
.laptop-sector { grid-column: 1 / -1; font-size: clamp(.48rem, 1.05cqw, .69rem); letter-spacing: .105em; text-transform: uppercase; font-weight: 850; color: #315143; }
.laptop-caption strong { font-size: clamp(.65rem, 1.72cqw, 1.05rem); }
.laptop-caption > span { font-size: .85em; }

.section h2 { letter-spacing: -.043em; word-spacing: .055em; }

/* Product stories use the vendored daisyUI vertical timeline. */
#work > .section-inner > h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin: 0 0 clamp(18px, 3vw, 30px);
}
#work .carousel-top { margin-bottom: clamp(18px, 2.5vw, 30px); }
#work .project-card { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); }
#work .project-info {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 52px);
}
.case-intro h3 { margin: 0 0 10px; letter-spacing: -.04em; }
.case-headline { font-size: clamp(1.16rem, 1.9vw, 1.5rem); font-weight: 760; line-height: 1.2; color: #285a46; text-wrap: balance; }
.case-gap { margin: 18px 0 12px; color: var(--soft-ink); line-height: 1.5; max-width: 53ch; }
.case-timeline { --color-base-300: #a9c4b2; list-style: none; padding: 0; margin: 0 0 20px; }
.case-timeline > li { --timeline-col-end: minmax(0, 1fr); }
.case-timeline .case-timeline-middle { width: 14px; height: 14px; border-radius: 50%; background: #285a46; border: 3px solid #d9eadb; }
.case-timeline .case-timeline-end { margin: 0 0 0 17px; padding-block: 11px; }
.case-timeline > li > hr { width: 2px; margin: 0; }
.case-timeline h4, .case-ownership h4, .case-delivery h4 { font-size: 1rem; margin: 0 0 4px; }
.case-timeline p, .case-ownership p { color: var(--soft-ink); font-size: 1rem; line-height: 1.45; }
.case-ownership { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
#work .project-visual {
  min-width: 0;
  padding: clamp(14px, 2vw, 28px);
}
.case-showcase { overflow: hidden; border-radius: 6px; background: #244e40; }
.project-visual .case-showcase > img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.case-showcase > img[hidden] { display: none; }
.case-showcase-fallback { padding: 16px; color: #f2f8ee; }
.case-delivery { padding-top: 18px; color: #f2f8ee; }
.case-delivery p { color: #d9e9df; line-height: 1.5; max-width: 42ch; }
.case-apps { list-style: none; padding: 0; margin: 5px 0 0; }
.case-app { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
.case-app + .case-app { border-top: 1px solid #ffffff30; }
.case-app > strong { min-width: 6.75rem; font-size: .95rem; }
.case-app-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.case-app-badges a { display: grid; place-items: center; min-height: 44px; }
.project-visual .case-app-badges img {
  display: block;
  width: auto;
  height: 40px;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  object-fit: contain;
}
.project-visual .case-app-badges .store-badge-android { height: 59px; }
.case-delivery .project-actions { margin-top: 0; }
.case-delivery .case-site-link { text-decoration: underline; text-underline-offset: .2em; }
.case-delivery a:focus-visible { outline: 2px solid #e2f6b5; outline-offset: 3px; }

@media (max-width: 780px) {
  #work .project-card { grid-template-columns: minmax(0, 1fr); }
  #work .carousel-arrows { display: none; }
}

/* Ecosystem graph: overview, focused branches, and connected topics. */
.knowledge-graph { border: 1px solid #ffffff42; border-radius: 6px; overflow: hidden; background: #102f25; }
.graph-bar { min-height: 55px; padding: .55rem clamp(12px, 2vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: .55rem; border-bottom: 1px solid #ffffff32; font-weight: 750; }
.graph-overview, .related-topics button { color: #edf5e7; background: #214d3c; padding: .45rem .7rem; min-height: 40px; border: 1px solid #648e77; border-radius: 4px; font-size: .85rem; font-weight: 720; }
.graph-overview:disabled { opacity: .55; cursor: default; }
.graph-overview:not(:disabled):hover, .related-topics button:hover { background: #e3f6b6; color: #133c2e; }
.graph-board { position: relative; height: clamp(340px, 38vw, 425px); isolation: isolate; background-image: radial-gradient(#d6efc22c 1px, transparent 1px), radial-gradient(ellipse at 50% 50%, #1e4c3c, #102f25 70%); background-size: 18px 18px, 100% 100%; }
.graph-lines, .graph-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-edge, .graph-cross { fill: none; stroke: #9fe0b5; stroke-width: 1.5; opacity: .66; }
.graph-cross { stroke: #b6d9cf; stroke-dasharray: 3 5; opacity: .31; }
.graph-cross.visible-edge { opacity: .78; }
.graph-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; text-align: center; width: min(23%, 180px); min-height: 47px; padding: .48rem .5rem; line-height: 1.15; border: 1px solid #8bb49c; border-radius: 5px; background: #21503d; color: #f4faec; font-size: clamp(.75rem, 1.5vw, .96rem); font-weight: 760; box-shadow: 0 4px 14px #091f1677; transition: background .2s, box-shadow .2s; }
button.graph-node:hover, .graph-node[aria-pressed="true"] { background: #e0f6b1; color: #133a2d; box-shadow: 0 0 25px #d4f49c54; }
.graph-node.map-root { min-height: 58px; background: #e0f6b1; color: #133a2d; border-color: #e0f6b1; }
.knowledge-graph[data-expanded="true"] .graph-node { width: min(40%, 233px); }
.knowledge-graph[data-expanded="true"] .map-root { min-height: 68px; font-size: clamp(.92rem, 2vw, 1.32rem); }
.map-related { border-style: dashed; }
.graph-detail { padding: clamp(16px, 3vw, 31px); border-top: 1px solid #ffffff34; color: #e0ece0; }
.graph-detail > h3 { margin: 0 0 .55rem; color: #f5f6ed; font-size: clamp(1.45rem, 2.75vw, 2.25rem); }
.graph-detail p { line-height: 1.55; }
.graph-detail .branch-example { margin-top: .65rem; padding-top: .65rem; }
.related-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }

/* Customer journey: tap steps or move through them in order. */
.call-demo { padding: clamp(14px, 3vw, 36px); }
.call-steps { grid-template-columns: repeat(7, minmax(0,1fr)); gap: 0; margin: 1.45rem 0; }
.call-steps li { position: relative; }
.call-steps li:not(:last-child)::after { content: ""; position: absolute; inset: 17px -50% auto 50%; border-top: 1px dashed #b8d7c1; z-index: 0; pointer-events: none; }
.call-steps button { position: relative; display: grid; place-items: center; gap: 8px; border: 0; background: transparent; color: #e8f1e5; padding: 0 2px; }
.call-steps button span { z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #93b69e; background: #163e30; border-radius: 50%; }
.call-steps button[aria-current] span, .call-steps li.complete button span { background: #def3ac; border-color: #def3ac; color: #123b2b; }
.call-steps button[aria-current] strong { color: #def3ac; }
.call-steps button strong { font-size: .86rem; }
.call-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; min-height: 135px; }
.flow-story, .flow-result { border-radius: 4px; padding: clamp(14px, 2.3vw, 24px); }
.flow-story { background: #f6f5ed; color: #19372a; }
.flow-story h3 { margin: 0 0 7px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.flow-story p, .flow-result p { line-height: 1.5; }
.flow-story blockquote { margin: .6rem 0 0; border-left: 2px solid #9cc7ac; padding-left: .7rem; }
.flow-result { background: #214b3c; border: 1px solid #ffffff38; }
.flow-result small { color: #dbf5a7; font-weight: 750; display: block; margin-bottom: 9px; }
.flow-contact { margin-top: 1rem; }

/* Career roadmap: the path runs through each actual stop. */
.roadmap-track { position: relative; height: clamp(245px, 27vw, 340px); border: 1px solid #cdd9c7; border-radius: 6px; background: radial-gradient(#b6cbb553 1px, transparent 1px) 0 0 / 14px 14px, #eaf0e3; }
.roadmap-path, .roadmap-stops { position: absolute; inset: 0; width: 100%; height: 100%; }
.road-bed, .road-line { fill: none; stroke-linecap: round; }
.road-bed { stroke: #3b6d56; stroke-width: 12; }
.road-line { stroke: #e1f0c4; stroke-width: 1.4; stroke-dasharray: 4 5; }
.road-stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #183e2e; }
.road-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f8fbf0; border: 2px solid #3b6d56; font-size: .88rem; font-weight: 800; }
.road-stop strong { position: absolute; top: calc(100% + 5px); width: clamp(85px, 9vw, 125px); padding: .2rem; background: #eff4e9eb; text-align: center; line-height: 1.15; font-size: clamp(.72rem, 1.35vw, .92rem); border-radius: 3px; }
.road-stop.road-high strong { top: auto; bottom: calc(100% + 5px); }
.road-stop:hover .road-dot, .road-stop[aria-pressed="true"] .road-dot { background: #184735; color: #f4f8ed; box-shadow: 0 0 0 4px #c5dca8; }
.roadmap-detail { background: #fffdf7; border: 1px solid var(--line); border-radius: 5px; padding: clamp(15px, 3vw, 27px); margin-top: 10px; min-height: 145px; }
.roadmap-detail h3 { margin: 0 0 .4rem; font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
.roadmap-detail p:not(.eyebrow) { color: var(--soft-ink); line-height: 1.55; }
.roadmap-detail a { display: inline-block; margin-top: .55rem; font-weight: 750; text-decoration: underline; color: #255744; }

@media (max-width: 820px) {
  .laptop-menu { padding: 4% 5% 2.5%; gap: 2.6cqw; }
  .laptop-projects { grid-template-columns: .9fr 1.1fr .9fr; gap: clamp(7px, 2.2cqw, 20px); }
  .laptop-projects a, .laptop-projects a:last-child { gap: .35rem; padding: .35rem; }
  .laptop-projects a[data-featured="true"] { transform: translateY(-2px); }
}
@media (max-width: 680px) {
  .graph-node { width: 29%; }
  .graph-node.map-root { width: 23%; }
  .call-steps { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 12px; }
  .call-steps li:nth-child(4)::after { display: none; }
  .call-content { grid-template-columns: 1fr; }
  .roadmap-track { height: 610px; }
  .road-stop strong { top: calc(100% + 2px); width: 109px; background: #eff4e9f5; }
}
@media (prefers-reduced-motion: reduce) {
  .laptop-projects a:hover, .laptop-projects a:focus-visible { transform: none; }
}
.contact { min-height: calc(100svh - var(--nav-h)); }

/* One viewport per scene. Only a scene's own content can overflow. */
html.scene-deck,
.scene-deck body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
.scene-deck main { position: fixed; inset: 0; width: 100%; height: 100%; }
.scene-deck main > section,
.scene-deck main > footer { position: absolute; inset: var(--nav-h) 0 0; height: auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scroll-padding-bottom: 72px; }
.scene-deck main > .section { padding-top: clamp(32px, 5vh, 68px); padding-bottom: max(82px, env(safe-area-inset-bottom)); }
.scene-deck main > .intro-reel { inset: 0; height: 100dvh; overflow: hidden; }
.scene-deck .intro-reel .stage { position: relative; touch-action: pinch-zoom; }
.scene-deck .scene-incoming { z-index: 2; }
.scene-deck .scene-outgoing-top { z-index: 3; }
.scene-deck .site-nav a[aria-current="location"]:not(.site-brand) { color: var(--lime); }
.scene-controls { position: fixed; right: clamp(12px, 3.5vw, 46px); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 1px; box-shadow: 0 6px 18px #0c241d45; border-radius: 4px; }
.scene-controls button { min-height: 44px; min-width: 44px; padding: .45rem .72rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-size: .84rem; font-weight: 760; border: 1px solid #648e77; background: #0e3024; color: #fff; }
.scene-controls button:first-child { border-radius: 4px 0 0 4px; }
.scene-controls button:last-child { border-radius: 0 4px 4px 0; }
.scene-controls button:hover { background: var(--lime); color: #123629; }
.scene-deck #studio[hidden] { display: none; }
/* The ecosystem is a fixed-height scene. Each view replaces the same workspace. */
.scene-deck main > #ecosystem {
  display: flex;
  overflow: clip;
  padding-block: clamp(13px, 2.8dvh, 31px) max(65px, env(safe-area-inset-bottom));
}
#ecosystem .section-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
#ecosystem .section-heading { margin-bottom: clamp(12px, 2.1dvh, 24px); }
#ecosystem .section-heading .eyebrow { margin-bottom: .35rem; }
#ecosystem .section-heading h2 { font-size: clamp(2rem, min(5.5vw, 8dvh), 5.2rem); }
#ecosystem .section-heading > p { font-size: clamp(.9rem, 1.6vw, 1.17rem); }
.knowledge-graph { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.graph-bar { min-height: 0; padding-block: .36rem; }
.graph-views, .graph-subviews { display: flex; align-items: center; gap: .33rem; }
.graph-views button, .graph-subviews button {
  border: 1px solid #638773;
  border-radius: 4px;
  padding: .38rem .65rem;
  min-height: 36px;
  background: transparent;
  color: #e0ece0;
  font-size: .83rem;
  font-weight: 720;
}
.graph-views button[aria-pressed=true], .graph-subviews button[aria-pressed=true] { background: #e0f6b1; border-color: #e0f6b1; color: #133a2d; }
.graph-views button:disabled { opacity: .48; cursor: default; }
.graph-body { display: grid; min-height: 0; }
.knowledge-graph[data-split="true"] .graph-body { grid-template-columns: 1.15fr .85fr; }
.knowledge-graph .graph-board { height: auto; min-height: 0; }
.knowledge-graph .graph-detail, .graph-tools { min-height: 0; padding: clamp(.75rem, 2.2vw, 1.55rem); border: 0; color: #e0ece0; }
.knowledge-graph[data-split="true"] .graph-detail { border-left: 1px solid #ffffff34; }
.graph-detail > h3, .graph-tools > h3 { margin: 0 0 .55rem; font-size: clamp(1.22rem, 2.7vw, 2.15rem); line-height: 1.12; color: #f5f6ed; }
.graph-subviews { margin-bottom: .65rem; }
.graph-tools > p, #branch-detail { max-width: 60ch; line-height: 1.5; }
.graph-tools a { color: #e0f6b1; text-underline-offset: 3px; text-decoration: underline; }
#branch-detail .branch-links, #branch-detail .related-topics { margin-top: .6rem; }
#branch-detail .related-topics button { min-height: 36px; }
@media (max-width: 760px) {
  #ecosystem .section-heading { gap: 8px; }
  #ecosystem .section-heading h2 { font-size: clamp(1.85rem, 7vw, 2.8rem); text-wrap: auto; }
  .graph-bar { padding-inline: .42rem; gap: .25rem; }
  .graph-views { gap: .22rem; }
  .graph-views button, .graph-overview { min-height: 40px; padding-inline: .38rem; font-size: .75rem; }
  .knowledge-graph .graph-node { min-height: 39px; padding: .32rem .22rem; }
  .knowledge-graph[data-expanded=true] .map-root { min-height: 49px; }
}
@media (max-height: 630px) {
  #ecosystem .section-heading > p { display: none; }
  #ecosystem .section-heading h2 { font-size: clamp(1.6rem, 5.5dvh, 2.75rem); }
  .knowledge-graph .graph-node { min-height: 34px; }
  .knowledge-graph .graph-subviews button { min-height: 32px; }
}
@media (max-height: 430px) {
  #ecosystem .section-heading .eyebrow { display: none; }
  #ecosystem .section-heading { margin-bottom: 8px; }
  .knowledge-graph .graph-lines { display: none; }
  .knowledge-graph .graph-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: .25rem; padding: .35rem; }
  .knowledge-graph[data-expanded=true] .graph-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .knowledge-graph .graph-node { position: static; transform: none; width: auto; min-height: 29px; }
  .knowledge-graph:not([data-expanded=true]) .map-root { display: none; }
  .graph-tools, .knowledge-graph .graph-detail { padding: .45rem .65rem; }
  .graph-detail > h3, .graph-tools > h3 { margin-bottom: .3rem; }
  .graph-subviews { margin-bottom: .3rem; }
}
