:root {
  --norma-ink: #090b09;
  --norma-cream: #f3f0e8;
  --norma-sage: #92a479;
  --norma-gold: #e7bd68;
  --norma-line: rgba(237, 225, 196, .16);
}

.case-detail--norma {
  background: #050709;
}

.case-detail--norma .page-header {
  background: rgba(4, 6, 8, .86);
  backdrop-filter: blur(22px) saturate(1.08);
}

.norma-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 118px 0 56px;
  background:
    radial-gradient(circle at 78% 56%, rgba(151, 170, 125, .16), transparent 35%),
    linear-gradient(145deg, #080b0b, #040609 70%);
}

.norma-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../media/cases/norma/product-hero-bg.webp") 66% center / cover no-repeat;
  content: "";
  filter: saturate(.58) contrast(1.02);
  opacity: .3;
}

.norma-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 7, .34), rgba(3, 5, 7, .84) 58%, #050709 100%);
  content: "";
}

.norma-hero__grid {
  display: grid;
  gap: 42px;
}

.norma-hero__copy h1 {
  max-width: 780px;
  margin: 21px 0 20px;
  font-size: clamp(46px, 13.5vw, 78px);
  font-weight: 330;
  letter-spacing: -.062em;
  line-height: .92;
}

.norma-hero__copy h1 em,
.norma-origin h2 em,
.norma-section-head h2 em,
.norma-content-scene h2 em {
  color: #f1d998;
  font-family: var(--serif);
  font-weight: 500;
}

.norma-hero__copy .hero-lead {
  max-width: 680px;
  color: #b7bcc3;
  font-size: 15px;
  line-height: 1.58;
}

.norma-hero__boundary {
  max-width: 620px;
  margin: 16px 0 0;
  color: #858a91;
  font-size: 10px;
  line-height: 1.55;
}

.norma-hero__stage {
  position: relative;
  min-height: 555px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.norma-hero__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(225, 190, 111, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(141, 161, 118, .12), 0 0 90px rgba(219, 174, 83, .08);
  transform: translate(-50%, -50%) rotateX(68deg);
}

.norma-phone {
  position: absolute;
  width: min(56vw, 214px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 25px;
  background: #ebe8df;
  box-shadow: 0 38px 80px rgba(0, 0, 0, .6);
  transform-style: preserve-3d;
}

.norma-phone::before {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 38%;
  height: 8px;
  border-radius: 10px;
  background: rgba(7, 8, 8, .82);
  content: "";
  transform: translateX(-50%);
}

.norma-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.norma-phone figcaption {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  left: 9px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(238, 208, 142, .28);
  border-radius: 12px;
  background: rgba(5, 7, 7, .84);
  color: #f3eee3;
  backdrop-filter: blur(12px);
}

.norma-phone figcaption b {
  color: var(--norma-gold);
  font-size: 9px;
}

.norma-phone figcaption span {
  font-size: 9px;
  line-height: 1.25;
}

.norma-phone--entry {
  top: 22px;
  left: 2px;
  transform: rotateY(7deg) rotateZ(-3deg) translateZ(12px);
}

.norma-phone--dish {
  top: 98px;
  right: 0;
  transform: rotateY(-7deg) rotateZ(3deg) translateZ(44px);
}

.norma-hero__mark {
  position: absolute;
  z-index: 6;
  right: 8%;
  bottom: 4px;
  left: 8%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid rgba(231, 189, 104, .28);
  border-radius: 16px;
  background: rgba(7, 9, 9, .86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
}

.norma-hero__mark img {
  width: 35px;
  height: 35px;
  padding: 6px;
  border-radius: 10px;
  background: #f2efe6;
}

.norma-hero__mark span {
  display: grid;
  gap: 3px;
  font-size: 13px;
  font-weight: 750;
}

.norma-hero__mark small {
  color: #8f958f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.norma-origin {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: url("../media/cases/norma/product-hero-bg.webp") 67% center / cover no-repeat;
}

.norma-origin::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 4, .12) 0, rgba(2, 4, 4, .38) 38%, rgba(2, 4, 4, .97) 83%),
    linear-gradient(90deg, rgba(2, 4, 4, .74), transparent 76%);
  content: "";
}

.norma-origin__content {
  padding-top: 90px;
  padding-bottom: 54px;
}

.norma-origin h2 {
  max-width: 850px;
  margin: 16px 0;
  font-size: clamp(42px, 11vw, 72px);
  font-weight: 340;
  letter-spacing: -.055em;
  line-height: .96;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .72);
}

.norma-origin__content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #d4d1c8;
  font-size: 14px;
  line-height: 1.62;
  text-shadow: 0 2px 18px #000;
}

.norma-origin__path,
.norma-system-flow {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 26px;
  padding: 0 0 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.norma-origin__path::-webkit-scrollbar,
.norma-system-flow::-webkit-scrollbar {
  display: none;
}

.norma-origin__path span,
.norma-system-flow span {
  min-width: 148px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(7, 9, 8, .7);
  scroll-snap-align: start;
  backdrop-filter: blur(14px);
}

.norma-origin__path b,
.norma-system-flow b {
  color: var(--norma-gold);
  font-size: 8px;
}

.norma-origin__path i,
.norma-system-flow > i {
  align-self: center;
  color: rgba(231, 189, 104, .58);
  font-style: normal;
}

.norma-origin__source {
  display: block;
  max-width: 640px;
  margin-top: 18px;
  color: #8c908d;
  font-size: 9px;
  line-height: 1.5;
}

.norma-section-head {
  max-width: 880px;
}

.norma-section-head h2 {
  font-size: clamp(42px, 11vw, 76px);
  line-height: .94;
}

.norma-demo-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(139, 160, 116, .12), transparent 30%),
    #07090c;
}

.norma-demo-preview {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  overflow: hidden;
  border: 1px solid var(--norma-line);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(18, 22, 19, .98), rgba(7, 9, 10, .96)),
    #090b0c;
  box-shadow: 0 42px 110px rgba(0, 0, 0, .45);
}

.norma-demo-preview::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(231, 189, 104, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 189, 104, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 68%);
}

.norma-demo-preview__copy {
  position: relative;
  z-index: 4;
  padding: 28px 22px 0;
}

.norma-demo-preview__copy > small {
  color: var(--norma-gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.norma-demo-preview__copy h3 {
  max-width: 540px;
  margin: 11px 0;
  font-size: clamp(29px, 8vw, 50px);
  font-weight: 420;
  letter-spacing: -.045em;
  line-height: 1;
}

.norma-demo-preview__copy p {
  max-width: 540px;
  margin: 0;
  color: #abb1af;
  font-size: 13px;
  line-height: 1.58;
}

.norma-demo-preview__launch {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
  margin-top: 20px;
  padding: 12px 15px;
  overflow: hidden;
  border: 1px solid rgba(251, 222, 150, .5);
  border-radius: 15px;
  background: linear-gradient(105deg, #cf9b39, #f2d681 45%, #c58f2d 95%);
  background-size: 180% 100%;
  color: #171109;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(208, 157, 56, .22);
  animation: norma-action-breathe 6s ease-in-out infinite;
}

.norma-demo-preview__launch span {
  font-size: 13px;
  font-weight: 850;
}

.norma-demo-preview__launch b {
  grid-column: 1;
  color: rgba(23, 17, 9, .64);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.norma-demo-preview__launch i {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 25px;
  font-style: normal;
  transition: transform .2s ease;
}

.norma-demo-preview__launch:active {
  transform: scale(.985);
}

.norma-demo-preview__launch:active i {
  transform: translate(2px, -2px);
}

.norma-demo-preview__visual {
  position: absolute;
  top: 455px;
  right: 8%;
  bottom: auto;
  width: min(62%, 245px);
  transform: rotateY(-8deg) rotateZ(2deg);
  transform-origin: center bottom;
  perspective: 1000px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #151006;
  cursor: pointer;
}

.norma-demo-preview__visual > img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .68);
}

.norma-demo-preview__visual > span {
  position: absolute;
  top: 45%;
  left: -80px;
  display: grid;
  gap: 8px;
}

.norma-demo-preview__visual > span img {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(231, 189, 104, .28);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
}

.norma-demo-preview__visual > b {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 14px;
  left: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: linear-gradient(100deg, #f8e6a4, #d8a63e, #f5d77d);
  background-size: 180% 100%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  animation: norma-action-breathe 6s ease-in-out infinite;
}

.norma-demo-preview__visual:focus-visible {
  outline: 2px solid #f3d77e;
  outline-offset: 6px;
}

.norma-demo-preview__hint {
  position: absolute;
  z-index: 4;
  bottom: 16px;
  left: 18px;
  max-width: 155px;
  margin: 0;
  color: #929791;
  font-size: 9px;
  line-height: 1.45;
}

.norma-demo-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #070807;
  color: #11130f;
}

.norma-demo-dialog:not([open]) {
  display: none;
}

.norma-demo-dialog::backdrop {
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(16px);
}

.norma-demo-dialog__surface {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow: hidden;
  background: #f0eee8;
}

.norma-demo-dialog__head {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px 18px;
  border-bottom: 1px solid rgba(22, 25, 19, .12);
  background: rgba(248, 246, 240, .96);
  color: #11130f;
  touch-action: none;
}

.norma-demo-dialog__head > span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: rgba(19, 21, 17, .22);
  transform: translateX(-50%);
}

.norma-demo-dialog__head div {
  display: grid;
  gap: 2px;
}

.norma-demo-dialog__head small {
  color: #7c806f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.norma-demo-dialog__head strong {
  font-size: 15px;
}

.norma-demo-dialog__head button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 20, 17, .16);
  border-radius: 50%;
  background: #171914;
  color: #f7f4ea;
  font-size: 24px;
  cursor: pointer;
}

.norma-demo-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #efede7;
}

html.is-demo-open,
body.is-demo-open {
  overflow: hidden;
}

.norma-evidence-section {
  background: #05070a;
}

.norma-reel {
  overflow: hidden;
}

.norma-reel__rail {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 8px 8vw 16px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.norma-reel__rail::-webkit-scrollbar {
  display: none;
}

.norma-reel figure {
  position: relative;
  min-width: min(82vw, 335px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #ece9e1;
  scroll-snap-align: start;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}

.norma-reel figure img {
  display: block;
  width: 100%;
  height: auto;
}

.norma-reel figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(236, 203, 129, .3);
  border-radius: 13px;
  background: rgba(7, 9, 8, .86);
  backdrop-filter: blur(14px);
}

.norma-reel figcaption b {
  color: var(--norma-gold);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.norma-reel figcaption span {
  color: #ece9df;
  font-size: 11px;
}

.norma-reel__controls {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 10px;
  align-items: center;
  margin-top: 7px;
}

.norma-reel__controls button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(232, 194, 110, .38);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(227, 185, 96, .18), rgba(10, 12, 13, .9));
  color: #f1d68f;
  font-size: 19px;
  cursor: pointer;
}

.norma-reel__controls button:active {
  transform: scale(.94);
}

.norma-reel__controls span {
  color: #8d928f;
  font-size: 10px;
  letter-spacing: .09em;
  text-align: center;
}

.norma-reel__controls strong {
  color: #f3d993;
  font-size: 15px;
}

.norma-evidence-section .evidence-panel {
  margin-top: 26px;
}

.norma-content-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 74px;
  background: #080a0a;
}

.norma-content-scene::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../media/cases/norma/product-hero-bg.webp") center / cover no-repeat;
  content: "";
  filter: saturate(.56) contrast(1.03);
  opacity: .2;
}

.norma-content-scene::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 7, .8), #050708 52%, rgba(5, 7, 8, .94));
  content: "";
}

.norma-content-scene__grid {
  display: grid;
  gap: 40px;
}

.norma-content-scene h2 {
  margin: 14px 0 17px;
  font-size: clamp(42px, 11vw, 74px);
  font-weight: 340;
  letter-spacing: -.055em;
  line-height: .94;
}

.norma-content-scene__copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #c2c5c1;
  font-size: 14px;
  line-height: 1.62;
}

.norma-content-scene__copy > small {
  display: block;
  max-width: 620px;
  margin-top: 17px;
  color: #888e8b;
  font-size: 9px;
  line-height: 1.55;
}

.norma-content-scene__gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 10vw 18px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.norma-content-scene__gallery::-webkit-scrollbar {
  display: none;
}

.norma-content-scene__gallery figure {
  position: relative;
  min-width: min(78vw, 330px);
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: #111;
  scroll-snap-align: start;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
}

.norma-content-scene__gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.norma-content-scene__gallery figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .36);
  color: #fff;
  font-size: 11px;
  text-shadow: 0 2px 12px #000;
}

.norma-system-section {
  background:
    radial-gradient(circle at 20% 22%, rgba(226, 184, 99, .08), transparent 24%),
    #05070a;
}

.norma-system-flow {
  margin: 30px 0 48px;
}

.norma-system-flow span {
  min-width: 172px;
  min-height: 128px;
}

.norma-system-flow small {
  color: #858b89;
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.norma-system-flow strong {
  font-size: 13px;
  font-weight: 520;
}

.case-detail--norma .case-final-action {
  margin-top: 34px;
}

@keyframes norma-action-breathe {
  0%, 100% { background-position: 0 50%; box-shadow: 0 16px 44px rgba(208, 157, 56, .18); }
  50% { background-position: 100% 50%; box-shadow: 0 18px 52px rgba(238, 198, 111, .3); }
}

@media (min-width: 760px) {
  .norma-hero {
    padding-top: 150px;
  }

  .norma-hero__grid {
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    align-items: center;
  }

  .norma-hero__stage {
    min-height: 680px;
  }

  .norma-phone {
    width: 260px;
  }

  .norma-phone--entry {
    left: 5%;
  }

  .norma-phone--dish {
    right: 5%;
  }

  .norma-demo-preview {
    min-height: 720px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
  }

  .norma-demo-preview__copy {
    align-self: center;
    padding: 46px;
  }

  .norma-demo-preview__visual {
    top: auto;
    right: 10%;
    bottom: -130px;
    width: 330px;
  }

  .norma-demo-preview__hint {
    left: 46px;
  }

  .norma-demo-dialog {
    display: grid;
    place-items: center;
    background: transparent;
  }

  .norma-demo-dialog__surface {
    width: min(460px, 94vw);
    height: min(900px, 94vh);
    border: 1px solid rgba(235, 200, 127, .35);
    border-radius: 28px;
    box-shadow: 0 50px 160px rgba(0, 0, 0, .72);
  }

  .norma-reel__rail {
    padding-right: 28%;
  }

  .norma-reel figure {
    min-width: 320px;
  }

  .norma-content-scene__grid {
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
  }

  .norma-content-scene__gallery {
    padding-right: 24%;
  }

  .norma-content-scene__gallery figure {
    min-width: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .norma-demo-preview__launch {
    animation: none;
  }

  .norma-phone,
  .norma-demo-preview__visual {
    transform: none;
  }
}
