/* Ultra V4: product materials and genuine case studies. The approved scene grammar stays in styles.css. */
:root {
  --case-stage-min: 900px;
  --case-screen-max: 1000px;
  --case-track-length: 170svh;
  --case-rim: #96a4bc;
  --case-metal: #283244;
  --case-light: #c5d9ff;
}
.interface-browser {
  border-color: #7c8cac;
  background: linear-gradient(135deg, #31415b, #111825 30%, #4b5c72);
}
.browser-chrome {
  background: linear-gradient(110deg, #253146, #182131);
  color: #d1dbea;
}
.interface-phone {
  border: 2px solid #8a98b0;
  padding-top: 29px;
  background: linear-gradient(
    120deg,
    #3b4a60,
    #0b0f17 12%,
    #070a10 88%,
    #53657f
  );
  box-shadow: 0 15px 30px #0004;
}
.interface-phone::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #c4d4f333;
  border-radius: 23px;
  pointer-events: none;
}
.object-brand {
  background: linear-gradient(145deg, #212c43, #08090b 62%);
  border-color: #7c99d7;
}
.depth-plane {
  border-color: #87a9ff52;
}
.interface-lines i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #c0d1f1;
  background: linear-gradient(125deg, #27447766, #16233e50);
}
.interface-lines i span {
  color: #9bbcfd;
  font-size: 12px;
}
.phone-layout i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  font-size: 7px;
  color: #c1d2f3;
}
.phone-layout i span {
  color: #97b6f6;
}
.floating-ui {
  border-color: #87a8ea60;
  background: linear-gradient(125deg, #131d30f5, #080d18f5);
}
.hero-coordinate {
  letter-spacing: 0.16em;
}
.experience-ready:not(.intro-complete) .spatial-grid {
  animation: v4-light-reveal 1450ms 150ms var(--ease-out) both;
}
.experience-ready:not(.intro-complete) .hero-light {
  animation: v4-light-reveal 1400ms var(--ease-out) both;
}
@keyframes v4-light-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.nfc-plate {
  background: linear-gradient(130deg, #27354c, #0c1423 68%, #1f304e);
  border-color: #8da8d6;
  box-shadow: 0 12px 25px #0004;
}
.nfc-phone {
  border-color: #94a0b2;
  background: linear-gradient(120deg, #e8e9ee, #cfd4df);
}
.eco-unit {
  background: linear-gradient(125deg, #22324d, #0b1220 70%);
  border-color: #759bd07d;
}
.ecosystem-ring {
  border-color: #7899ca70;
}
.checklist label:focus-within {
  border-color: #9ab6ff;
}
.result-score > strong {
  font-variant-numeric: tabular-nums;
}
.faq summary::after,
.faq summary span {
  transition: transform var(--motion-medium) var(--ease-out);
}
.founder {
  border-color: #78839d45;
}
.demo-poster img {
  aspect-ratio: 3/2;
  object-fit: cover;
}
.demo-poster {
  align-items: center;
}

.real-projects {
  background: #07090d;
}
.real-projects-intro {
  padding-block: 120px 80px;
}
.real-projects-intro .section-copy {
  margin-top: 30px;
  max-width: 660px;
  font-size: 16px;
}
.real-projects-intro .section-title {
  max-width: 1050px;
}
.real-case {
  --case-accent: #9bbcff;
}
.case-canaletas {
  --case-accent: #bbc0c6;
}
.case-stage {
  min-height: var(--case-stage-min);
  background:
    radial-gradient(ellipse at 57% 58%, #1d356238, transparent 65%), #07090d;
}
.case-canaletas .case-stage {
  background:
    radial-gradient(ellipse at 60% 64%, #4b362221, transparent 65%), #090b0e;
}
.motion-ready .case-track {
  height: var(--case-track-length);
}
.motion-ready .case-track > .scene {
  min-height: var(--case-stage-min);
  height: 100svh;
}
.case-heading {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 19%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  transform: translateY(calc(var(--scene-p) * -18px));
}
.case-heading h3 {
  font-size: clamp(46px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}
.case-heading h3 > span {
  color: var(--case-accent);
}
.case-site {
  flex-shrink: 0;
  gap: 25px;
  margin-bottom: 7px;
}
.case-visual {
  position: absolute;
  inset: 37% var(--gutter) 5%;
  perspective: 1800px;
}
.case-monitor {
  position: absolute;
  width: min(86%, var(--case-screen-max));
  left: 4%;
  top: 0;
  border: 1px solid var(--case-rim);
  border-radius: 13px;
  padding: 5px;
  background: linear-gradient(
    145deg,
    #8592a8,
    var(--case-metal) 7%,
    #10161f 85%,
    #596d8d
  );
  transform: rotateX(calc(5deg - var(--scene-p) * 5deg))
    rotateY(calc(-10deg + var(--scene-p) * 10deg))
    rotateZ(calc(-3deg + var(--scene-p) * 3deg))
    scale(calc(0.91 + var(--scene-p) * 0.09));
  transform-origin: 50% 60%;
}
.case-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 32px;
  padding-inline: 14px;
  font-size: 9px;
  letter-spacing: 0.03em;
  color: #c4ccda;
  background: #101722;
  border-radius: 8px 8px 0 0;
}
.case-dots {
  color: #7e8ca6;
  font-size: 7px;
  letter-spacing: 4px;
}
.case-screen {
  overflow: hidden;
  border-radius: 0 0 7px 7px;
  background: #080a0e;
}
.case-screen > img {
  width: calc(100% + 8px);
  max-width: none;
  height: auto;
}
.case-interface-layer {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: 44%;
  max-width: 550px;
  border: 1px solid #8ca6d1;
  border-radius: 8px;
  padding: 4px;
  background: linear-gradient(135deg, #657694, #111a2a 16%, #09101c);
  transform: translate3d(
      calc((1 - var(--scene-p)) * 30px),
      calc((1 - var(--scene-p)) * 20px),
      90px
    )
    rotateZ(calc(3deg - var(--scene-p) * 3deg));
}
.case-visual > figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  font-size: 11px;
  color: #b1becf;
}
.case-visual > figcaption .micro {
  font-size: 9px;
  color: var(--case-light);
}
.case-canaletas .case-monitor {
  width: min(84%, var(--case-screen-max));
  left: 2%;
  transform: translateX(calc(var(--scene-p) * -25px))
    rotateY(calc(8deg - var(--scene-p) * 8deg))
    rotateZ(calc(2deg - var(--scene-p) * 2deg))
    scale(calc(0.96 - var(--scene-p) * 0.08));
}
.case-catalog-layer {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: 61%;
  max-width: 740px;
  border: 1px solid #bbc2ca;
  padding: 5px;
  border-radius: 9px;
  background: linear-gradient(130deg, #a4adb9, #313b47 15%, #222c39);
  transform: translate3d(
      calc((1 - var(--scene-p)) * 45px),
      calc((1 - var(--scene-p)) * 55px),
      100px
    )
    rotateZ(calc(-4deg + var(--scene-p) * 4deg))
    scale(calc(0.9 + var(--scene-p) * 0.1));
}
.case-layer-label {
  display: block;
  padding: 9px 12px;
  font-size: 7px;
  color: #c5cdd7;
}
.case-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 90px;
  padding-block: 85px 110px;
  border-top: 1px solid var(--line);
}
.case-story h4 {
  font-size: clamp(35px, 3.5vw, 56px);
  line-height: 1.06;
  margin-top: 28px;
}
.case-story p {
  font-size: 14px;
  line-height: 1.85;
  margin-top: 25px;
  max-width: 440px;
}
.case-deliverables {
  list-style: none;
  padding: 20px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #afc0dd;
  font-size: 10px;
}
.case-detail {
  min-width: 0;
  border-top: 1px solid #7687a15e;
  padding-top: 24px;
}
.case-detail img {
  width: 100%;
  height: auto;
  border: 1px solid #5b6b8540;
}
.case-detail figcaption {
  color: #aebfd8;
  font-size: 8px;
  margin-top: 18px;
}
.case-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-bottom: 90px;
}
.case-flow li {
  padding: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #e2e5eb;
}
.case-flow li span {
  display: block;
  margin-bottom: 13px;
  font-size: 9px;
  color: #9bb4dd;
}
.is-scene-active .case-monitor,
.is-scene-active .case-interface-layer,
.is-scene-active .case-catalog-layer {
  will-change: transform;
}

@media (min-width: 1800px) {
  .case-monitor {
    left: 12%;
  }
  .case-interface-layer {
    right: 7%;
  }
  :root {
    --case-screen-max: 1100px;
  }
  .case-canaletas .case-monitor {
    left: 8%;
  }
  .case-catalog-layer {
    right: 9%;
  }
}
@media (max-width: 1200px) {
  .case-heading h3 {
    font-size: 54px;
  }
  .case-visual {
    top: 39%;
  }
  .case-interface-layer {
    width: 48%;
  }
  .case-story {
    gap: 50px;
  }
}
@media (max-width: 900px) {
  .motion-ready .case-track {
    height: auto;
  }
  .case-stage,
  .motion-ready .case-track > .scene {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 130px var(--gutter) 40px;
  }
  .case-stage .scene-top {
    top: 85px;
  }
  .case-heading {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
  }
  .case-heading h3 {
    font-size: 48px;
  }
  .case-site {
    font-size: 11px;
    gap: 14px;
  }
  .case-visual {
    position: relative;
    inset: auto;
    height: 520px;
    margin-top: 55px;
  }
  .case-monitor {
    left: 0;
    width: 88%;
  }
  .case-interface-layer {
    width: 56%;
    bottom: 12%;
    right: 0;
  }
  .case-canaletas .case-monitor {
    left: 0;
    width: 91%;
  }
  .case-catalog-layer {
    width: 67%;
    bottom: 12%;
  }
  .case-story {
    padding-block: 55px 80px;
    gap: 40px;
  }
  .case-story h4 {
    font-size: 39px;
  }
  .case-story p {
    font-size: 13px;
  }
  .case-flow {
    padding-bottom: 70px;
  }
}
@media (max-width: 600px) {
  :root {
    --case-stage-min: 0px;
  }
  .interface-lines i {
    font-size: 6px;
    padding: 6px;
  }
  .interface-lines i span {
    font-size: 9px;
  }
  .phone-layout i {
    font-size: 5px;
    padding: 5px;
  }
  .hero-coordinate {
    letter-spacing: 0.13em;
  }
  .real-projects-intro {
    padding-block: 85px 45px;
  }
  .real-projects-intro .section-copy {
    font-size: 14px;
    margin-top: 25px;
  }
  .case-stage,
  .motion-ready .case-track > .scene {
    padding-top: 120px;
    padding-bottom: 35px;
  }
  .case-stage .scene-top {
    top: 35px;
    position: absolute;
    gap: 25px;
  }
  .case-stage .scene-top .micro {
    font-size: 8px;
    line-height: 1.8;
    flex-basis: 50%;
  }
  .case-stage .scene-top .micro:last-child {
    text-align: right;
  }
  .case-heading {
    display: block;
  }
  .case-heading h3 {
    font-size: clamp(39px, 10.8vw, 56px);
  }
  .case-site {
    margin-top: 28px;
    margin-bottom: 0;
    font-size: 12px;
    gap: 24px;
  }
  .case-visual {
    margin-top: 35px;
    height: 415px;
  }
  .case-monitor {
    width: 94%;
    top: 22px;
    padding: 3px;
    border-radius: 8px;
    transform: rotateZ(-3deg);
  }
  .case-chrome {
    height: 22px;
    padding-inline: 9px;
    font-size: 6px;
  }
  .case-dots {
    font-size: 4px;
    letter-spacing: 2px;
  }
  .case-screen {
    border-radius: 0 0 4px 4px;
  }
  .case-interface-layer {
    width: 92%;
    right: 0;
    bottom: 16%;
    padding: 3px;
    border-radius: 6px;
    transform: rotateZ(3deg);
  }
  .case-visual > figcaption {
    display: block;
    font-size: 11px;
    bottom: 0;
  }
  .case-visual > figcaption .micro {
    font-size: 8px;
    display: block;
    margin-bottom: 8px;
  }
  .case-canaletas .case-visual {
    height: 415px;
  }
  .case-canaletas .case-monitor {
    width: 95%;
    transform: rotateZ(2deg);
  }
  .case-catalog-layer {
    width: 94%;
    right: 0;
    bottom: 16%;
    border-radius: 6px;
    padding: 3px;
    transform: rotateZ(-3deg);
  }
  .case-layer-label {
    font-size: 5px;
    padding: 7px 8px;
  }
  .case-story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding-block: 50px 75px;
  }
  .case-story h4 {
    font-size: 38px;
    margin-top: 23px;
  }
  .case-story p {
    font-size: 14px;
  }
  .case-deliverables {
    font-size: 10px;
    gap: 9px 18px;
  }
  .case-detail {
    padding-top: 20px;
  }
  .case-detail figcaption {
    font-size: 7px;
    margin-top: 15px;
  }
  .case-flow {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
    padding-bottom: 60px;
  }
  .case-flow li {
    font-size: 11px;
    padding-top: 15px;
  }
}
@media (max-width: 360px) {
  .case-heading h3 {
    font-size: 10.8vw;
  }
  .case-visual {
    height: 390px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .case-track {
    height: auto;
  }
  .motion-ready .case-track > .scene {
    position: relative;
    height: auto;
    min-height: var(--case-stage-min);
  }
  .case-heading,
  .case-monitor,
  .case-interface-layer,
  .case-catalog-layer {
    transform: none;
  }
  .is-scene-active .case-monitor,
  .is-scene-active .case-interface-layer,
  .is-scene-active .case-catalog-layer {
    will-change: auto;
  }
}
.service-proof {
  margin-left: 24px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .service-proof {
    display: flex;
    margin-left: 0;
    margin-top: 15px;
    width: max-content;
  }
  .final-cta h2 {
    font-size: clamp(45px, 12.8vw, 65px);
  }
}
