/* About Me: a chrome rose turning in its own light, with dust, drifting petals
   and a slow sweep of light around it, then the operator file below. One image;
   every moving part is CSS or a small canvas, so the page stays static. */
.about-view{
  position:relative;
  isolation:isolate;
  background:radial-gradient(ellipse 40% 34% at 62% 18%,rgba(126,137,146,.05),transparent 72%);
}

/* ---- the scene ---------------------------------------------------------- */
.rose-scene{
  --rx:0deg;
  --ry:0deg;
  --mx:50%;
  --my:46%;
  --drift-scale:1;
  position:relative;
  margin-inline:calc(var(--pad) * -1);
  margin-bottom:clamp(44px,6vw,84px);
}
.rose-scene__stage{
  position:relative;
  height:calc(100svh - var(--header));
  min-height:520px;
  overflow:hidden;
  isolation:isolate;
  border-bottom:1px solid #191918;
  background:
    radial-gradient(ellipse 54% 50% at 56% 44%,#141419 0%,#0b0b0d 46%,#080808 78%),
    #080808;
}
.rose-scene__arc{
  position:absolute;
  left:56%;
  top:63%;
  z-index:1;
  width:150%;
  height:62%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border-top:1px solid rgba(214,222,236,.4);
  box-shadow:0 -22px 70px -26px rgba(196,208,228,.35);
  filter:blur(1.5px);
  opacity:.42;
  pointer-events:none;
}

/* a pool of colour breathing behind the flower */
.rose-scene__glow{
  position:absolute;
  z-index:1;
  left:56%;
  top:46%;
  width:min(76vmax,880px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(128,106,188,.22),rgba(96,86,150,.08) 44%,transparent 68%);
  filter:blur(16px);
  pointer-events:none;
  animation:rose-glow 15s ease-in-out infinite alternate;
}

/* fine dust orbiting the flower: canvas, drawn additively */
.rose-scene__dust{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  opacity:.95;
  mix-blend-mode:screen;
  pointer-events:none;
  animation:rose-in 1.6s ease-out both;
}

/* one wide, slow wash of light across the whole stage */
.rose-scene__beam{
  position:absolute;
  z-index:2;
  inset:-40% -60%;
  pointer-events:none;
  mix-blend-mode:screen;
  background:linear-gradient(72deg,
    transparent 36%,
    rgba(206,214,255,.05) 44%,
    rgba(240,242,255,.13) 50%,
    rgba(180,166,255,.06) 56%,
    transparent 64%);
  animation:rose-beam 17s ease-in-out infinite;
}

/* ---- petals of light drifting through the scene ------------------------- */
.rose-scene__petals{
  position:absolute;
  inset:0;
  pointer-events:none;
  transform-origin:56% 48%;
}
.rose-scene__petals--back{
  z-index:2;
  transform:translate3d(calc(var(--px,0px) * .45),calc(var(--py,0px) * .45),0);
}
.rose-scene__petals--front{
  z-index:4;
  transform:translate3d(calc(var(--px,0px) * 1.35),calc(var(--py,0px) * 1.35),0) rotate(var(--pr,0deg));
}
/* real chrome petals, rendered to match the rose, drifting through the scene */
.rose-scene__petals i{
  position:absolute;
  left:56%;
  top:48%;
  display:block;
  width:var(--w,18vmin);
  height:var(--w,18vmin);
  translate:-50% -50%;
  background:var(--petal) center/contain no-repeat;
  opacity:var(--o,.8);
  transform-origin:50% 50%;
  will-change:transform,opacity;
  animation-iteration-count:infinite;
  animation-timing-function:linear;
  animation-fill-mode:both;
}
.rose-scene__petals--back i{--petal:url("../images/petal-a.webp")}
.rose-scene__petals--front i{--petal:url("../images/petal-b.webp")}
/* slow orbits behind the metal */
.rose-scene__petals--back i:nth-child(1){--w:30vmin;--o:.7;animation-name:petal-a;animation-duration:34s;animation-delay:-4s}
.rose-scene__petals--back i:nth-child(2){--w:21vmin;--o:.6;--petal:url("../images/petal-c.webp");scale:-1 1;animation-name:petal-b;animation-duration:27s;animation-delay:-13s}
.rose-scene__petals--back i:nth-child(3){--w:40vmin;--o:.34;--petal:url("../images/petal-d.webp");scale:-1 1;animation-name:petal-d;animation-duration:43s;animation-delay:-22s}
.rose-scene__petals--back i:nth-child(4){--w:13vmin;--o:.72;--petal:url("../images/petal-b.webp");animation-name:petal-a;animation-duration:22s;animation-delay:-9s}
/* and two falling in front of it: a big soft one past the right edge and a
   small crisp one past the left, so neither sits on the flower's heart */
.rose-scene__petals--front i:nth-child(1){--w:24vmin;--o:.46;animation-name:petal-fall;animation-duration:28s;animation-delay:-7s}
.rose-scene__petals--front i:nth-child(2){--w:16vmin;--o:.95;--petal:url("../images/petal-c.webp");scale:-1 1;animation-name:petal-fall-b;animation-duration:35s;animation-delay:-19s}

@keyframes petal-a{
  0%{transform:translate3d(-28vmin,6vmin,0) rotate(-24deg) scale(1)}
  25%{transform:translate3d(-10vmin,-16vmin,0) rotate(12deg) scale(1.16)}
  50%{transform:translate3d(16vmin,-8vmin,0) rotate(46deg) scale(.9)}
  75%{transform:translate3d(8vmin,14vmin,0) rotate(10deg) scale(1.12)}
  100%{transform:translate3d(-28vmin,6vmin,0) rotate(-24deg) scale(1)}
}
@keyframes petal-b{
  0%{transform:translate3d(20vmin,-13vmin,0) rotate(38deg) scale(.94)}
  30%{transform:translate3d(2vmin,11vmin,0) rotate(6deg) scale(1.2)}
  60%{transform:translate3d(-22vmin,3vmin,0) rotate(-30deg) scale(1)}
  85%{transform:translate3d(-5vmin,-18vmin,0) rotate(16deg) scale(1.1)}
  100%{transform:translate3d(20vmin,-13vmin,0) rotate(38deg) scale(.94)}
}
@keyframes petal-c{
  0%{transform:translate3d(5vmin,15vmin,0) rotate(-8deg) scale(1.04)}
  35%{transform:translate3d(-24vmin,-6vmin,0) rotate(32deg) scale(.92)}
  70%{transform:translate3d(12vmin,-17vmin,0) rotate(-20deg) scale(1.14)}
  100%{transform:translate3d(5vmin,15vmin,0) rotate(-8deg) scale(1.04)}
}
@keyframes petal-d{
  0%{transform:translate3d(-16vmin,12vmin,0) rotate(26deg) scale(.9)}
  30%{transform:translate3d(7vmin,-13vmin,0) rotate(-14deg) scale(1.18)}
  65%{transform:translate3d(21vmin,9vmin,0) rotate(-42deg) scale(.94)}
  100%{transform:translate3d(-16vmin,12vmin,0) rotate(26deg) scale(.9)}
}
@keyframes petal-fall{
  0%{transform:translate3d(30vmin,-58vmin,0) rotate(-38deg) scale(.84);opacity:0}
  12%{opacity:var(--o,.3)}
  52%{transform:translate3d(48vmin,-3vmin,0) rotate(16deg) scale(1.05);opacity:calc(var(--o,.3) * .9)}
  100%{transform:translate3d(37vmin,52vmin,0) rotate(72deg) scale(1);opacity:0}
}
/* a second fall, swung the other way and down the far side of the stage */
@keyframes petal-fall-b{
  0%{transform:translate3d(-24vmin,-54vmin,0) rotate(56deg) scale(.8);opacity:0}
  14%{opacity:var(--o,.3)}
  52%{transform:translate3d(-40vmin,-1vmin,0) rotate(-14deg) scale(1.06);opacity:calc(var(--o,.3) * .95)}
  100%{transform:translate3d(-29vmin,48vmin,0) rotate(-66deg) scale(.9);opacity:0}
}

/* ---- the flower --------------------------------------------------------- */
.rose-scene__plate{
  position:absolute;
  inset:0;
  z-index:3;
  perspective:1500px;
  pointer-events:none;
  animation:rose-in 1.2s ease-out both;
}
.rose-scene__body{
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  transform:rotateX(var(--rx)) rotateY(var(--ry));
  will-change:transform;
}
.rose-scene__drift{
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  animation:rose-drift 13s ease-in-out infinite alternate;
  will-change:transform;
}
.rose-scene__drift img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center 50%;
  -webkit-mask-image:radial-gradient(ellipse 78% 82% at 50% 50%,#000 66%,transparent 96%);
  mask-image:radial-gradient(ellipse 78% 82% at 50% 50%,#000 66%,transparent 96%);
}

/* the slow turn: a few degrees of sway, a breath of scale, a small float */
@keyframes rose-drift{
  0%{transform:rotateY(-10deg) rotateX(3.5deg) rotateZ(-.7deg) translate3d(-1.2%,0,0) scale(var(--drift-scale))}
  50%{transform:rotateY(0deg) rotateX(-1.8deg) rotateZ(.6deg) translate3d(0,-1.8%,0) scale(calc(var(--drift-scale) * 1.045))}
  100%{transform:rotateY(10deg) rotateX(3.5deg) rotateZ(-.7deg) translate3d(1.2%,0,0) scale(var(--drift-scale))}
}

/* two specular bands crossing the chrome at different speeds */
.rose-scene__sheen{
  position:absolute;
  inset:-6% -50%;
  background:linear-gradient(102deg,transparent 40%,rgba(255,255,255,.5) 47%,rgba(196,206,255,.24) 53%,transparent 61%);
  mix-blend-mode:overlay;
  pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 62% 70% at 50% 50%,#000 58%,transparent 92%);
  mask-image:radial-gradient(ellipse 62% 70% at 50% 50%,#000 58%,transparent 92%);
  animation:rose-sheen 9s ease-in-out infinite;
}
.rose-scene__sheen--b{
  inset:-6% -40%;
  background:linear-gradient(76deg,transparent 34%,rgba(214,206,255,.34) 47%,rgba(255,255,255,.2) 54%,transparent 68%);
  animation:rose-sheen-b 15s ease-in-out infinite;
}

/* a soft highlight that follows the pointer across the metal */
.rose-scene__light{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:radial-gradient(circle 34vmax at var(--mx) var(--my),rgba(255,255,255,.13),transparent 58%);
  mix-blend-mode:overlay;
}

@keyframes rose-glow{
  from{opacity:.5;transform:translate(-50%,-50%) scale(.94)}
  to{opacity:1;transform:translate(-50%,-50%) scale(1.06)}
}
@keyframes rose-in{
  from{opacity:0}
  to{opacity:1}
}
@keyframes rose-beam{
  0%{transform:translate3d(-34%,0,0)}
  55%{transform:translate3d(34%,-3%,0)}
  100%{transform:translate3d(-34%,0,0)}
}
@keyframes rose-sheen{
  0%,14%{transform:translateX(-34%)}
  60%,100%{transform:translateX(34%)}
}
@keyframes rose-sheen-b{
  0%,20%{transform:translateX(38%)}
  70%,100%{transform:translateX(-38%)}
}

/* ---- overlay ------------------------------------------------------------ */
.rose-scene__title{
  position:absolute;
  z-index:6;
  left:clamp(18px,4vw,58px);
  bottom:clamp(56px,9vh,104px);
  width:min(680px,74%);
  pointer-events:none;
}
.rose-scene__title::before{
  content:"";
  position:absolute;
  inset:-10% -8% -16%;
  z-index:-1;
  background:radial-gradient(ellipse at 32% 58%,rgba(8,8,8,.88),rgba(8,8,8,.5) 46%,transparent 74%);
  filter:blur(20px);
  pointer-events:none;
}
.rose-scene__title .eyebrow{font-size:9px;letter-spacing:.16em;margin-bottom:22px;animation:rise-in .8s cubic-bezier(.2,.7,.2,1) .15s both}
.rose-scene__title h1{
  font-size:clamp(48px,8.4vw,124px);
  font-weight:800;
  line-height:.86;
  letter-spacing:-.07em;
  text-shadow:0 18px 60px #000;
  animation:rise-in 1.1s cubic-bezier(.2,.7,.2,1) .28s both;
}
.rose-scene__title h1 .outline-text{-webkit-text-stroke:1px #8f9184}
.rose-scene__note{
  margin-top:24px;
  max-width:38ch;
  font-size:13px;
  line-height:1.85;
  color:#a9a69d;
  text-shadow:0 10px 30px #000;
  animation:rise-in .9s cubic-bezier(.2,.7,.2,1) .52s both;
}
@keyframes rise-in{
  from{opacity:0;transform:translate3d(0,22px,0)}
  to{opacity:1;transform:none}
}

.rose-scene__cue{
  position:absolute;
  z-index:6;
  right:clamp(18px,3.6vw,54px);
  bottom:clamp(20px,4vh,38px);
  display:inline-flex;
  align-items:center;
  gap:16px;
  min-height:44px;
  font:8px var(--mono);
  letter-spacing:.16em;
  color:#b6b3a9;
  transition:color .2s;
}
.rose-scene__cue span{color:var(--accent);font-size:18px;line-height:1;animation:cue-bob 2.4s ease-in-out infinite}
.rose-scene__cue:hover{color:var(--accent)}
@keyframes cue-bob{
  0%,100%{transform:translateY(-1px)}
  50%{transform:translateY(4px)}
}

/* ---- the operator file that follows ------------------------------------- */
.about-view .about-grid{margin-top:0}
.about-view .about-grid,
.about-view .about-principles,
.about-view .about-projects{position:relative;z-index:1}
.about-view .identity-card{background:linear-gradient(140deg,rgba(27,24,21,.96),rgba(12,12,11,.97));backdrop-filter:blur(5px)}

@media(max-width:1100px){
  .rose-scene__title{width:min(560px,78%)}
  .rose-scene__note{font-size:12px}
}
@media(max-width:760px){
  .rose-scene{--drift-scale:1.16}
  .rose-scene__stage{min-height:480px}
  .rose-scene__drift img{object-fit:cover;object-position:center 48%}
  .rose-scene__title{left:18px;right:18px;bottom:clamp(58px,9vh,86px);width:auto}
  .rose-scene__title .eyebrow{font-size:8px;margin-bottom:16px}
  .rose-scene__title h1{font-size:clamp(40px,13vw,72px)}
  .rose-scene__note{margin-top:16px;max-width:32ch;font-size:12px;line-height:1.75}
  .rose-scene__cue{left:18px;right:auto;gap:12px}
  .rose-scene__arc{width:190%;height:52%;top:60%}
  .rose-scene__glow{left:50%;top:40%}
}
@media(max-width:400px){
  .rose-scene__title{bottom:clamp(70px,11vh,104px)}
  .rose-scene__note{font-size:11px;line-height:1.7;max-width:29ch}
  .rose-scene__cue{bottom:12px}
}
@media(prefers-reduced-motion:reduce){
  .rose-scene__plate,
  .rose-scene__dust,
  .rose-scene__drift,
  .rose-scene__glow,
  .rose-scene__beam,
  .rose-scene__sheen,
  .rose-scene__title .eyebrow,
  .rose-scene__title h1,
  .rose-scene__note,
  .rose-scene__cue span,
  .rose-scene__petals i{animation:none;opacity:1}
  .rose-scene__body,
  .rose-scene__drift{transform:none}
  .rose-scene__glow{opacity:.8;transform:translate(-50%,-50%)}
  .rose-scene__sheen,
  .rose-scene__beam,
  .rose-scene__dust,
  .rose-scene__petals{display:none}
  .rose-scene__light{display:none}
  .rose-scene__title::before{background:radial-gradient(ellipse at 32% 58%,rgba(8,8,8,.7),transparent 74%)}
}
