:root {
  --ink: #fff;
  --surface: #020307;
  --violet: #6b46c2;
  --blue: #5bbada;
  --teal: #308890;
  --pink: #ff4dc4;
  --orb-reveal: cubic-bezier(.16, 1, .3, 1);
  --orb-soft: cubic-bezier(.25, .8, .28, 1);
}

.pumraw-graphics-hero,
.pumraw-graphics-hero * { box-sizing: border-box; }

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--surface);
}

body.pumraw-graphics-page {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pumraw-scroll-scene {
  position: relative;
  width: 100%;
  background: var(--surface);
}

.viewport {
  --pgh-blur: 0px;
  --pgh-dim: 0;
  --pgh-glass: 0;
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--surface);
}

.pumraw-elementor-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 1px;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  isolation: isolate;
}

.pumraw-elementor-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 3, 7, .08) 0%,
    rgba(2, 3, 7, .22) 18%,
    rgba(2, 3, 7, .38) 55%,
    rgba(2, 3, 7, .52) 100%
  );
}

.pumraw-hero-glass {
  position: absolute;
  z-index: 4;
  inset: -32px;
  pointer-events: none;
  opacity: var(--pgh-glass);
  background: rgba(2, 3, 7, var(--pgh-dim));
  -webkit-backdrop-filter: blur(var(--pgh-blur)) saturate(.78) brightness(.72);
  backdrop-filter: blur(var(--pgh-blur)) saturate(.78) brightness(.72);
  will-change: opacity, backdrop-filter;
}

.stage {
  position: absolute;
  inset: 0;
  contain: strict;
  isolation: isolate;
}

.top-aurora {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.top-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(2, 3, 7, .02) 42%,
    rgba(2, 3, 7, .08) 68%,
    rgba(2, 3, 7, .18) 84%,
    rgba(2, 3, 7, .28) 100%
  );
}

#graphicsAuroraCanvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .85;
  background: #020307 url("../media/pumraw-aurora-reference.png") center / cover no-repeat;
}

.full-starfield {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.flower-focus {
  position: absolute;
  z-index: 1;
  top: 54%;
  left: 50%;
  width: min(58vw, 900px);
  height: min(78dvh, 900px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(2, 3, 7, .68) 0%,
    rgba(2, 3, 7, .54) 29%,
    rgba(2, 3, 7, .3) 51%,
    rgba(2, 3, 7, .1) 66%,
    rgba(2, 3, 7, 0) 78%
  );
  filter: blur(10px);
}

.create-word {
  position: absolute;
  z-index: 2;
  top: 12.1dvh;
  left: 3.7vw;
  width: 92.6vw;
  margin: 0;
  white-space: nowrap;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: min(19vw, 39dvh);
  font-weight: 500;
  line-height: .9;
  letter-spacing: .025em;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .28), 0 10px 28px rgba(0, 0, 0, .3);
}

.create-word__mask,
.create-word__inner { display: block; }
.create-word__white { color: #fff; }
.flower {
  position: absolute;
  z-index: 3;
  top: 31dvh;
  left: 50%;
  height: 97dvh;
  transform: translateX(-50%) scaleX(1.16);
  transform-origin: 50% 8%;
  filter: contrast(1.08) brightness(.96);
  pointer-events: none;
}

.flower__sizer {
  display: block;
  width: auto;
  height: 100%;
  visibility: hidden;
}

.flower__layer {
  position: absolute;
  inset: 0;
  will-change: mask-image, -webkit-mask-image;
}

.flower__depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flower__depth img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.flower__depth--shadow {
  opacity: .76;
  transform: translateY(2.1%) scale(.992);
  filter: brightness(0) blur(15px);
}

.flower__depth--cyan {
  opacity: 0;
  transform: translate(-.75%, -.25%) scale(1.006);
  filter: brightness(0) saturate(100%) invert(74%) sepia(44%) saturate(1104%) hue-rotate(153deg) brightness(98%) contrast(93%) blur(5px);
}

.flower__depth--pink {
  opacity: 0;
  transform: translate(.65%, .35%) scale(1.004);
  filter: brightness(0) saturate(100%) invert(51%) sepia(97%) saturate(2928%) hue-rotate(295deg) brightness(106%) contrast(103%) blur(7px);
}

.flower__layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.flower__layer--front img {
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(.82);
}

.flower__layer--reveal {
  opacity: 0;
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mask-image: linear-gradient(transparent, transparent);
}

.flower__sculpt {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 39% 27%, rgba(255, 255, 255, .22) 0%, rgba(210, 216, 225, .1) 19%, transparent 42%),
    radial-gradient(ellipse at 66% 48%, rgba(196, 202, 212, .11) 0%, transparent 37%),
    linear-gradient(153deg, rgba(255, 255, 255, .14) 3%, transparent 31%, rgba(2, 3, 7, .25) 67%, rgba(2, 3, 7, .48) 100%);
  mix-blend-mode: soft-light;
  -webkit-mask: url("../media/iris-front-aurora.webp") center / contain no-repeat;
  mask: url("../media/iris-front-aurora.webp") center / contain no-repeat;
}

.flower__layer--front { z-index: 0; }
.flower__layer--reveal { z-index: 2; }

.support-copy {
  position: absolute;
  z-index: 4;
  bottom: 4.3dvh;
  margin: 0;
  color: #f7f7f7;
  font-size: clamp(14px, min(1.38vw, 2.08dvh), 26px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.support-copy--left { left: 3.2vw; }
.support-copy--right { left: 78.1vw; }
.support-copy__inner { display: block; }

html.anim .create-word__mask {
  overflow: hidden;
  padding: .08em 0 .14em;
  margin: -.08em 0 -.14em;
}

html.anim .create-word__inner { animation: orb-word 1050ms var(--orb-reveal) 180ms both; }
html.anim .support-copy__inner { animation: orb-corner 650ms var(--orb-soft) 620ms both; }

@keyframes orb-word {
  from { transform: translateY(118%); }
  to { transform: translateY(0); }
}

@keyframes orb-corner {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px), (orientation: portrait) {
  .create-word { left: 0; width: 100%; font-size: min(20vw, 34dvh); }
  .support-copy--right { left: auto; right: 3.2vw; }
}

@media (max-width: 900px), (max-aspect-ratio: 4 / 5) {
  .viewport { min-height: 600px; }
  .create-word { top: 15svh; font-size: min(21vw, 28svh); letter-spacing: .02em; }
  .flower-focus { top: 55%; width: min(76vw, 760px); height: 72svh; }
  .flower { top: 32svh; height: min(76svh, 128vw); transform: translateX(-50%) scaleX(1.11); }
  .support-copy { bottom: 4dvh; font-size: clamp(13px, 3.25vw, 18px); }
  .support-copy--left { left: 22px; }
  .support-copy--right { right: 22px; text-align: right; }
}

@media (max-width: 782px) {
  body.admin-bar .viewport {
    top: 46px;
    height: calc(100svh - 46px);
    min-height: 554px;
  }

  .pumraw-elementor-content::before {
    background: linear-gradient(
      180deg,
      rgba(2, 3, 7, .12) 0%,
      rgba(2, 3, 7, .3) 35%,
      rgba(2, 3, 7, .52) 100%
    );
  }
}

@media (min-width: 783px) {
  body.admin-bar .viewport {
    top: 32px;
    height: calc(100svh - 32px);
  }
}

@media (max-aspect-ratio: 4 / 5) {
  .create-word { top: 17svh; font-size: min(21.5vw, 16.5svh); }
  .flower-focus { top: 57%; width: 108vw; height: 72svh; }
  .flower { top: 33svh; height: min(69svh, 138vw); }
  .support-copy { width: 43vw; white-space: normal; }
}

@media (max-width: 540px) {
  .viewport { min-height: 560px; }
  .top-aurora { height: 100%; }
  .create-word {
    top: 16svh;
    padding: 0 12px;
    font-size: min(21vw, 15svh);
    letter-spacing: .018em;
  }
  .flower {
    top: 32svh;
    height: min(69svh, 151vw);
    max-width: 118vw;
    transform: translateX(-50%) scaleX(1.08);
  }
  .flower__depth--shadow { filter: brightness(0) blur(10px); }
  .flower__depth--cyan { opacity: .28; filter: brightness(0) saturate(100%) invert(74%) sepia(44%) saturate(1104%) hue-rotate(153deg) brightness(98%) contrast(93%) blur(4px); }
  .flower__depth--pink { opacity: .2; filter: brightness(0) saturate(100%) invert(51%) sepia(97%) saturate(2928%) hue-rotate(295deg) brightness(106%) contrast(103%) blur(5px); }
  .support-copy {
    bottom: 3svh;
    width: 42vw;
    font-size: clamp(11px, 2.9vw, 14px);
    line-height: 1.18;
  }
  .support-copy--left { left: 18px; }
  .support-copy--right { right: 18px; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .viewport { min-height: 100svh; }
  .top-aurora { height: 100%; }
  .create-word { top: 8svh; font-size: min(17.5vw, 31svh); }
  .flower-focus { top: 56%; width: 64vw; height: 92svh; }
  .flower { top: 23svh; height: 86svh; transform: translateX(-50%) scaleX(1.13); }
  .support-copy { bottom: 3svh; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html.anim .stage { animation: stage-fade 280ms ease-out both; }
  html.anim .create-word__inner,
  html.anim .support-copy__inner { animation: none; }
  @keyframes stage-fade { from { opacity: 0; } to { opacity: 1; } }

  .pumraw-hero-glass { will-change: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .flower__depth--cyan,
  .flower__depth--pink,
  .flower__sculpt { display: none; }
}
