/* Identity — the performing logo (logo3d.js), the lacquered sphere, and headings in relief. */
.brand.logo3d{
  display:inline-flex;align-items:baseline;position:relative;color:#080808;
  white-space:nowrap;line-height:1.1;text-decoration:none;
}
.logo3d .l3d{display:inline-flex;align-items:baseline;position:relative}
.brand.logo3d .l3d-ch{
  display:inline-block;color:#080808;transform-origin:50% 88%;will-change:transform;
  text-shadow:0 .02em 0 #3a3632, 0 .05em .05em rgba(60,35,20,.18);
}
.brand.logo3d .l3d-ch[data-i="0"]{transform-origin:50% 92%}
/* before the script measures, and whenever the logo is closed, only "I." is drawn — by rule, not by timing */
.logo3d:not(.l3d-ready):not(.l3d-static) .l3d-ch:not([data-i="0"]),
.logo3d.is-closed:not(.is-moving) .l3d-ch:not([data-i="0"]){opacity:0!important;visibility:hidden!important;transform:scale(0)!important}

/* the lacquered sphere: the logo's dot and every heading's full stop */
.l3d-core,.identity-final-dot{
  background:
    radial-gradient(circle at 33% 27%, rgba(255,255,255,.97) 0 5%, rgba(255,255,255,0) 17%),
    radial-gradient(circle at 68% 80%, rgba(255,160,160,.6) 0 6%, rgba(255,160,160,0) 26%),
    radial-gradient(circle at 40% 35%, #ff4b55 0%, #e11924 38%, #a40c17 76%, #640610 100%);
}
.logo3d .l3d-ball{
  display:inline-block;position:relative;width:.21em;height:.21em;margin-left:.045em;border-radius:50%;
  transform-origin:50% 50%;will-change:transform;
  box-shadow:0 .05em .07em rgba(110,8,16,.32);
}
.logo3d .l3d-core{position:absolute;inset:0;border-radius:50%;will-change:transform}

/* headings: the final dot becomes the sphere */
.identity-final-dot{
  display:inline-block;width:.19em;height:.19em;margin-left:.05em;border-radius:50%;
  overflow:hidden;color:transparent!important;-webkit-text-fill-color:transparent;vertical-align:baseline;line-height:0;font-size:inherit;
  text-indent:1em;box-shadow:0 .04em .06em rgba(110,8,16,.28);
}
h1 .identity-final-dot{width:.17em;height:.17em}
.hero-copy h1 .identity-final-dot{animation:l3d-drop 1.1s .95s cubic-bezier(.3,.7,.4,1) both;transform-origin:50% 100%}
@keyframes l3d-drop{
  0%{transform:translateY(-1.4em) scale(.9,1.1);opacity:0}
  35%{transform:translateY(0) scale(1.22,.78);opacity:1}
  55%{transform:translateY(-.32em) scale(.94,1.06)}
  75%{transform:translateY(0) scale(1.08,.92)}
  88%{transform:translateY(-.06em) scale(1)}
  100%{transform:none;opacity:1}
}

/* big headings in relief, lacquered like the sphere: a light catches the top of each line,
   a warm shadow lifts the letters off the page */
.relief{
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  background-size:100% 1lh;background-repeat:repeat-y;
}
.relief--dark{
  background-image:linear-gradient(180deg, #5a5550 0%, #1d1b19 34%, #050505 56%, #000 74%, #2c2926 100%);
  filter:drop-shadow(0 .022em 0 rgba(45,28,16,.6)) drop-shadow(0 .065em .05em rgba(80,48,24,.2));
}
.relief--light{
  background-image:linear-gradient(180deg, #ffffff 0%, #fbf8f4 40%, #d9d2c8 60%, #f4efe8 100%);
  filter:drop-shadow(0 .022em 0 rgba(0,0,0,.65)) drop-shadow(0 .07em .06em rgba(0,0,0,.35));
}
/* spans inside a heading keep their own colour (the grey half of a heading, the red stop) */
.relief span:not(.identity-final-dot){-webkit-text-fill-color:currentColor}
.relief span:not(.identity-final-dot):has(> .identity-final-dot){-webkit-text-fill-color:transparent}

@media (forced-colors:active){
  .relief{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText;filter:none}
}
@media (prefers-reduced-motion:reduce){
  .hero-copy h1 .identity-final-dot{animation:none!important}
}
@media (max-width:380px){.nav .logo3d .l3d-ch:not([data-i="0"]){display:none}}
