/* ------------------------------------------------------------------
   Mina — landing page
   Palette: amber-white sky, cotton-candy pinks, berry ink.
------------------------------------------------------------------- */

:root {
  --sky-top: #fff8ec;
  --sky-low: #ffecd6;
  --ink: #5b2338;
  --pink: #f0629a;
  --pink-soft: #ffb3cd;
  --pink-deep: #c9387a; /* pink that small text can be read in */
  --amber: #ffc46b;
  --card: #fffaf3;

  /* one round, puffy face for everything */
  --font-puff: "DynaPuff", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;

  /* one size drives the whole hero */
  --s: clamp(3.2rem, min(6vw + 2.8rem, 19vh), 11rem);

  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --glide: cubic-bezier(0.2, 0.8, 0.2, 1);
  --settle: cubic-bezier(0.16, 1, 0.3, 1); /* a long, soft landing */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-low));
  color: var(--ink);
  font-family: var(--font-puff);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- sky ---------- */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* the canvas stays hidden until its first frame is painted (clouds.js adds .sky-on),
   so there is never a blank or half-built sky on screen */
.js #sky {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.sky-on #sky {
  opacity: 1;
}

/* no WebGL? paint a few soft clouds with gradients instead */
.no-webgl #sky {
  background:
    radial-gradient(38vmin 38vmin at 96% 62%, #ffd9e4 0 60%, transparent 62%),
    radial-gradient(40vmin 40vmin at 92% 82%, #ffc2d6 0 60%, transparent 62%),
    radial-gradient(34vmin 34vmin at 66% 96%, #ffc2d6 0 60%, transparent 62%),
    radial-gradient(28vmin 28vmin at 42% 110%, #ffc2d6 0 60%, transparent 62%),
    linear-gradient(var(--sky-top), var(--sky-low));
}

/* ---------- hero ---------- */

.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(1.5rem, 6.5vw, 7.5rem) 2vh;
  pointer-events: none;
}

.hero-inner {
  will-change: transform;
}

.hello {
  margin: 0;
  font: 700 var(--s) / 0.98 var(--font-puff);
  letter-spacing: -0.01em;
}

.line {
  display: block;
  white-space: nowrap;
}

/* the words stay hidden until the puffy font is in and they're split into
   letters (main.js adds .is-ready). Still laid out, so the font loads.
   If main.js never runs, they show up on their own after a few seconds. */
.js .line {
  visibility: hidden;
  animation: failsafe 0s 5s forwards;
}

.is-ready .line {
  visibility: visible;
  animation: none;
}

@keyframes failsafe {
  to { visibility: visible; }
}

.line-hi {
  padding-top: 0.2em; /* room for the i's to float upward */
}

/* "im Mina Vian" is about 6.1em wide: on a phone it shrinks just enough to
   fit the screen (14.5vw), anywhere wider it keeps its size */
.line-name {
  margin-top: 0.14em;
  font-size: min(0.86em, 14.5vw);
}

.line-nice {
  margin: calc(var(--s) * 0.2) 0 0;
  font: 700 calc(var(--s) * 0.33) / 1.1 var(--font-puff);
  letter-spacing: 0.005em;
}

/* split pieces (built in main.js) */
.ch,
.wd {
  display: inline-block;
  transform-origin: 50% 78%;
  will-change: transform, opacity;
}

.js .ch,
.js .wd,
.js .smiley {
  opacity: 0;
  transition: opacity 0.28s ease-out;
}

.js .is-in {
  opacity: 1;
}

.sp {
  display: inline-block;
  width: 0.26em;
}

.wd + .wd {
  margin-left: 0.32em;
}

.name {
  position: relative;
  display: inline-block;
  color: var(--pink);
}

/* the surname, in the same pink; the squiggle stays under Mina, what to call her */
.surname {
  color: var(--pink);
}

.squiggle {
  position: absolute;
  left: 2%;
  bottom: -0.2em;
  width: 96%;
  height: 0.2em;
  overflow: visible;
}

.squiggle path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.9s var(--glide), opacity 0.15s;
}

.squiggle.is-in path {
  stroke-dashoffset: 0;
  opacity: 1;
}

/* ---------- smiley ---------- */

.smiley {
  display: block;
  width: calc(var(--s) * 1.02);
  margin: calc(var(--s) * 0.24) 0 0 calc(var(--s) * 0.1);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 70%;
  will-change: transform, opacity;
  -webkit-appearance: none;
  appearance: none;
}

.smiley:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 0.5rem;
  border-radius: 1.5rem;
}

.smiley svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.eye {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.2s infinite;
}

.mouth {
  fill: none;
  stroke: var(--ink);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.7s var(--glide) 0.15s, opacity 0.1s 0.15s;
}

.smiley.is-in .mouth {
  stroke-dashoffset: 0;
  opacity: 1;
}

.cheeks {
  fill: var(--pink-soft);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.9s ease, transform 0.9s var(--spring);
}

.smiley.is-happy .cheeks {
  opacity: 1;
  transform: scale(1.18);
  transition-duration: 0.15s, 0.3s;
}

@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.08); }
}

/* ---------- the cat in Mina ---------- */

/* Pointing at the name, a cat grows up out of it: its head rises from
   behind the letters with a squash and a stretch, the ears pop, the paws
   land on the n and the a, and the tail curls out behind the a. While it's
   out it blinks, twitches an ear, sways its tail and watches the pointer
   (main.js). Away again, it ducks back down. */
.name {
  pointer-events: auto;
}

.cat {
  position: absolute;
  z-index: -1;   /* behind the letters */
  left: 64%;     /* (main.js centres it over the n and the a) */
  bottom: 0.43em;   /* the line it grows out of, partway down the letters */
  width: 1.1em;
  aspect-ratio: 1;
  translate: -50% 0;
  overflow: hidden;
  pointer-events: none;
}

.name.is-cat .cat {
  pointer-events: auto;
}

.cat-peek {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  translate: 0 104%;
  scale: 0.84 1.12;
  will-change: transform;
  /* going: a quick duck back down */
  transition: translate 0.34s cubic-bezier(0.5, 0, 0.75, 0) 0.08s, scale 0.3s ease-in 0.08s;
}

.name.is-cat .cat-peek {
  translate: 0 0;
  scale: 1;
  /* coming: up with a bounce, squashing as it lands */
  transition: translate 0.62s cubic-bezier(0.3, 1.45, 0.5, 1), scale 0.75s cubic-bezier(0.25, 2, 0.45, 1) 0.04s;
}

.cat-peek svg,
.cat-tail {
  display: block;
  overflow: visible;
}

.cat-peek svg {
  width: 100%;
  height: 100%;
}

.cat-fur {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.cat-inner {
  fill: var(--pink-soft);
}

.cat-stripes path {
  fill: none;
  stroke: var(--pink-soft);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.cat-cheeks {
  fill: var(--pink-soft);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.name.is-cat .cat-cheeks {
  opacity: 0.9;
  transition: opacity 0.5s ease 0.3s;
}

.cat-eye {
  fill: var(--ink);
}

.cat-shine {
  fill: #fff;
}

.cat-nose {
  fill: var(--pink);
}

.cat-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-whiskers {
  stroke-width: 2.6;
}

/* the ears pop up a moment after the head */
.cat-ear {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(-26deg) scale(0.35);
  transition: transform 0.22s ease-in;
}

.cat-ear-r {
  transform: rotate(26deg) scale(0.35);
}

.name.is-cat .cat-ear {
  transform: none;
  transition: transform 0.55s cubic-bezier(0.3, 1.8, 0.5, 1) 0.16s;
}

.name.is-cat .cat-ear-r {
  transition-delay: 0.22s;
}

/* now and then, the right ear flicks */
.cat-twitch {
  transform-box: fill-box;
  transform-origin: 30% 100%;
  animation: cat-twitch 4.6s 1.4s infinite paused;
}

@keyframes cat-twitch {
  0%, 86%, 100% { transform: none; }
  89% { transform: rotate(15deg); }
  92% { transform: rotate(-2deg); }
  95% { transform: rotate(9deg); }
}

.cat-blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 3.9s 0.9s infinite paused;
}

/* the paws: one over the top of the n, one over the a (main.js adds them) */
.has-paw {
  position: relative;
}

.paw {
  position: absolute;
  left: 50%;
  top: 0.17em;
  width: 0.31em;
  translate: -50% 0;
  transform-origin: 50% 100%;
  scale: 0;
  pointer-events: none;
  transition: scale 0.16s ease-in;
}

.name.is-cat .paw {
  scale: 1;
  transition: scale 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) 0.26s;
}

.name.is-cat .has-paw + .has-paw .paw {
  transition-delay: 0.33s;
}

.paw svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.paw-bean {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 3.4;
  stroke-linejoin: round;
}

.paw-toes {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* the tail curls out from behind the a, drawn like the squiggle */
.cat-tail {
  position: absolute;
  z-index: -1;
  left: calc(100% - 0.2em);
  bottom: 0.2em;
  width: 0.5em;
  height: 0.75em;
  pointer-events: none;
}

.cat-sway {
  transform-box: view-box;
  transform-origin: 7px 84px;
  animation: cat-sway 1.7s ease-in-out infinite alternate paused;
}

@keyframes cat-sway {
  from { transform: rotate(-7deg); }
  to { transform: rotate(9deg); }
}

.cat-tail path {
  fill: none;
  stroke-linecap: round;
  /* a gap longer than the tail: tucked away, not even a round cap's dot
     of it shows (with "1" the next dash starts right at its tip) */
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.24s ease-in;
}

.cat-tail-ink {
  stroke: var(--ink);
  stroke-width: 14;
}

.cat-tail-fur {
  stroke: var(--card);
  stroke-width: 8;
}

.name.is-cat .cat-tail path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.25, 0.8, 0.35, 1) 0.3s;
}

.name.is-cat .cat-twitch,
.name.is-cat .cat-blink,
.name.is-cat .cat-sway {
  animation-play-state: running;
}

/* without the motion: the cat simply fades in and out, and keeps still */
@media (prefers-reduced-motion: reduce) {
  .cat-peek,
  .name.is-cat .cat-peek {
    translate: 0 0;
    scale: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .name.is-cat .cat-peek {
    opacity: 1;
  }

  .cat-ear,
  .name.is-cat .cat-ear,
  .paw,
  .name.is-cat .paw,
  .cat-tail path,
  .name.is-cat .cat-tail path {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }

  .name.is-cat .cat-twitch,
  .name.is-cat .cat-sway {
    animation-play-state: paused;
  }

  .is-ready .wip-words {
    animation: wip-in 0.4s ease 1s both;
  }
}

/* ---------- a note on the cloud ---------- */

/* "this site isn't finished yet", written low on the cloud bank, a little
   crooked, like it was jotted on the cloud. It comes in once the hello has
   bounced in, rocks gently, and goes while you're inside a cloud. */
.wip {
  position: fixed;
  left: 79%;
  bottom: max(5vh, 1.4rem);
  z-index: 1;
  margin: 0;
  translate: -50% 0;
  rotate: -3deg;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font: 700 clamp(0.95rem, 0.5vw + 0.8rem, 1.3rem) / 1.2 var(--font-puff);
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.6s ease 0.4s;
}

.is-flying .wip {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (max-width: 34rem) {
  .wip {
    left: 61%;
    bottom: 0.9rem;
  }
}

.wip-words {
  display: inline-block;
  transform-origin: 50% 80%;
}

.js .wip-words {
  opacity: 0;
}

.is-ready .wip-words {
  animation: wip-in 0.9s var(--settle) 2.7s both, wip-rock 5s ease-in-out 3.6s infinite alternate;
}

@keyframes wip-in {
  from { opacity: 0; translate: 0 0.5em; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes wip-rock {
  from { rotate: 0deg; }
  to { rotate: 2.5deg; }
}

/* ---------- flying into a cloud ---------- */

/* the words let go quickly as the cloud reaches them (main.js) */
.is-leaving .ch,
.is-leaving .wd,
.is-leaving .smiley {
  transition: opacity 0.3s ease-in;
}

/* a soft cover for when the sky itself can't fly: no WebGL, or reduced motion */
.veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: linear-gradient(#fff1ee, #ffdde7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.is-veiled .veil {
  opacity: 1;
}

/* ---------- pictures in the clouds ---------- */

.spots {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* a round, see-through button over a picture; pages.js keeps it in place */
.spot {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d, 0);
  height: var(--d, 0);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  visibility: hidden;
  will-change: transform;
  -webkit-appearance: none;
  appearance: none;
}

.spot.is-on {
  visibility: visible;
}

.spot:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 0.25rem;
}

.spot-tag {
  position: absolute;
  left: 50%;
  bottom: 6%;
  padding: 0.42em 1em 0.5em;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0.5rem 1.1rem -0.45rem rgb(190 60 118 / 0.55);
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.3rem);
  line-height: 1;
  white-space: nowrap;
  translate: -50% 0;
  rotate: var(--tilt, -4deg);   /* each tag leans its own way (pages.js picks) */
  scale: 0.4;
  opacity: 0;
  transition: scale 0.55s var(--spring), rotate 0.55s var(--spring), translate 0.55s var(--spring), opacity 0.2s ease-out;
  /* and idles in a slow, small figure of eight, each on its own loop */
  animation: tag-float var(--idle-dur, 8s) linear var(--idle-delay, 0s) infinite;
}

@keyframes tag-float {
  0% { transform: translate(0em, 0em) rotate(0.98deg); }
  6.25% { transform: translate(0.027em, -0.064em) rotate(1.1deg); }
  12.5% { transform: translate(0.049em, -0.09em) rotate(1.05deg); }
  18.75% { transform: translate(0.065em, -0.064em) rotate(0.84deg); }
  25% { transform: translate(0.07em, 0em) rotate(0.5deg); }
  31.25% { transform: translate(0.065em, 0.064em) rotate(0.09deg); }
  37.5% { transform: translate(0.049em, 0.09em) rotate(-0.34deg); }
  43.75% { transform: translate(0.027em, 0.064em) rotate(-0.71deg); }
  50% { transform: translate(0em, 0em) rotate(-0.98deg); }
  56.25% { transform: translate(-0.027em, -0.064em) rotate(-1.1deg); }
  62.5% { transform: translate(-0.049em, -0.09em) rotate(-1.05deg); }
  68.75% { transform: translate(-0.065em, -0.064em) rotate(-0.84deg); }
  75% { transform: translate(-0.07em, 0em) rotate(-0.5deg); }
  81.25% { transform: translate(-0.065em, 0.064em) rotate(-0.09deg); }
  87.5% { transform: translate(-0.049em, 0.09em) rotate(0.34deg); }
  93.75% { transform: translate(-0.027em, 0.064em) rotate(0.71deg); }
  100% { transform: translate(0em, 0em) rotate(0.98deg); }
}

.spot.is-on .spot-tag {
  scale: 1;
  opacity: 1;
}

/* Pointing at it, the tag turns into the title it becomes: "projects"
   goes pink and a :3 slides out at the end. */
.tag-words > span {
  display: inline-block;
  transition: color 0.35s ease;
}

.tag-words > .tag-face {
  max-width: 0;
  overflow: hidden;
  vertical-align: top;
  opacity: 0;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.tag-face > span {
  display: inline-block;
  padding-left: 0.26em;
  translate: -0.3em 0;
  rotate: -12deg;
  transition: translate 0.5s var(--spring), rotate 0.5s var(--spring);
}

.spot.is-on:hover .tag-words > span:nth-child(2),
.spot.is-on:focus-visible .tag-words > span:nth-child(2) {
  color: var(--pink);
}

.spot.is-on:hover .tag-words > .tag-face,
.spot.is-on:focus-visible .tag-words > .tag-face {
  max-width: 1.6em;
  opacity: 1;
}

.spot.is-on:hover .tag-face > span,
.spot.is-on:focus-visible .tag-face > span {
  translate: 0 0;
  rotate: 0deg;
}

.spot.is-on:hover .spot-tag,
.spot.is-on:focus-visible .spot-tag {
  translate: -50% -0.3rem;
  rotate: var(--tilt-hover, 2deg);
  scale: 1.12;
}

.spot.is-on:active .spot-tag {
  scale: 0.96;
  transition-duration: 0.12s;
}

.is-flying .spot {
  pointer-events: none;
}

.is-flying .spot .spot-tag {
  scale: 0.4;
  opacity: 0;
  transition-duration: 0.2s;
}

/* Coming back out of a page, the words pop back in one after another,
   left to right (pages.js sets .is-landing for a moment) */
.spot[data-spot="1"] {
  --in-delay: 0.18s;
}

.spot[data-spot="2"] {
  --in-delay: 0.36s;
}

.is-landing:not(.is-flying) .spot-tag {
  transition-delay: var(--in-delay, 0s);
}

/* A spot with no picture: its words alone, big and written in soft cloud,
   white and puffy with a pink-tinted haze, in the middle of the puff. */
.spot-bare .spot-tag {
  bottom: 50%;
  /* room all round, so the soft glow fades out before the edge of the
     words' own box instead of being cut off there as a faint rectangle */
  padding: 0.8em 1em;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 3rem);
  translate: -50% 50%;
  text-shadow:
    0 0.05em 0 #ffe1ec,
    0 0.1em 0.12em rgb(222 96 150 / 0.35),
    0 0.2em 0.5em rgb(214 80 140 / 0.3),
    0 0 0.9em rgb(255 255 255 / 0.95),
    0 0 1.6em rgb(255 240 246 / 0.8);
}

.spot-bare.is-on:hover .spot-tag,
.spot-bare.is-on:focus-visible .spot-tag {
  translate: -50% calc(50% - 0.3rem);
}

/* its hover plays 0.1s slower than the other tags', a touch more relaxed */
.spot-bare .spot-tag {
  transition: scale 0.65s var(--spring), rotate 0.65s var(--spring), translate 0.65s var(--spring), opacity 0.3s ease-out;
}

.spot-bare .tag-words > span {
  transition: color 0.45s ease;
}

.spot-bare .tag-words > .tag-face {
  transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.spot-bare .tag-face > span {
  transition: translate 0.6s var(--spring), rotate 0.6s var(--spring);
}

/* its face slides out from behind a clip that still lets the glow show */
.spot-bare .tag-words > .tag-face {
  overflow: clip;
  overflow-clip-margin: 0.6em;
}

/* (its face, >w<, is wider than a :3) */
.spot-bare.is-on:hover .tag-words > .tag-face,
.spot-bare.is-on:focus-visible .tag-words > .tag-face {
  max-width: 2.8em;
}

/* On a phone contact & socials sits at the left edge: its words grow
   rightward from there, a little smaller. About me sits under my projects
   and stays centred on its puff. Only the words themselves take a tap. */
@media (max-width: 34rem) {
  .spot-bare {
    pointer-events: none;
  }

  .spot-bare .spot-tag {
    left: 0;
    padding: 0.35em 0.5em;
    font-size: min(1.35rem, 5.6vw);   /* (a touch smaller below 390px wide) */
    translate: 0 50%;
    transform-origin: 0 50%;
    pointer-events: auto;
  }

  .spot-bare.is-on:hover .spot-tag,
  .spot-bare.is-on:focus-visible .spot-tag {
    translate: 0 calc(50% - 0.3rem);
  }

  .spot-bare[data-spot="1"] .spot-tag {
    left: 50%;
    translate: -50% 50%;
    transform-origin: 50% 50%;
  }

  .spot-bare[data-spot="1"].is-on:hover .spot-tag,
  .spot-bare[data-spot="1"].is-on:focus-visible .spot-tag {
    translate: -50% calc(50% - 0.3rem);
  }
}

/* without WebGL the picture is a plain soft circle on the gradient clouds */
.no-webgl .spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pic) center / cover;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}

/* ---------- a page inside a cloud ---------- */

.page {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--on, var(--ink)) 38%, transparent) transparent;
}

.page[hidden] {
  display: none;
}

/* a project at a time, where each one fits the screen (pages.js) */
.page.is-paged {
  scroll-snap-type: y mandatory;
}

/* Laid out, decoded and painted a moment before it's needed, but not yet
   seen (pages.js). Its pieces are held in their finished places meanwhile,
   so every one of them really is painted. */
.is-warming {
  opacity: 0.001 !important;
  pointer-events: none !important;
}

.is-warming .project-panel,
.is-warming .shot,
.is-warming .project-words > * {
  opacity: 1 !important;
  transform: none !important;
}

.is-warming *,
.is-snap * {
  transition: none !important;
}

/* leaving: the whole page lets go at once */
.page.is-out {
  opacity: 0;
  transition: opacity 0.32s ease-in;
}

/* The title is the way back: "< my projects :3", up in the corner on
   every project. */
.back {
  position: fixed;
  top: clamp(0.8rem, 2.8vh, 1.7rem);
  left: clamp(0.8rem, 2.6vw, 2.8rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  padding: 0.15em 0.35em 0.2em 0.1em;
  border: 0;
  border-radius: 0.5em;
  background: none;
  color: var(--on, var(--ink));
  font: 700 clamp(1.8rem, 1.8vw + 1.2rem, 3.2rem) / 1 var(--font-puff);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.6s ease;
  will-change: transform, opacity;
  -webkit-appearance: none;
  appearance: none;
}

.back svg {
  width: 0.82em;
  height: 0.82em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 0.45s var(--spring);
}

.back-words span {
  display: inline-block;
  will-change: transform, opacity;
  transition: translate 0.45s var(--spring), rotate 0.45s var(--spring), color 0.6s ease;
}

.back-words span:nth-child(2) {
  color: var(--pop, var(--pink));
}

/* pointing at it: the arrow leans back the way you came, and :3 perks up */
.back:hover svg {
  translate: -0.22em 0;
}

.back:hover .back-words span:last-child {
  translate: 0.06em -0.08em;
  rotate: 8deg;
}

.back:active {
  scale: 0.97;
}

.back:focus-visible,
.btn:focus-visible,
.scroll-hint:focus-visible {
  outline: 3px solid var(--pop, var(--pink));
  outline-offset: 0.2rem;
}

/* ---------- a project ---------- */

/* A screenful: its pictures on one side and its words on the other. While
   it's on screen the whole cloud is dyed the project's colour (--panel;
   clouds.js paints it). --side says which side the words are on (1 right,
   -1 left); they take turns. */
.project {
  --side: 1;
  --panel: var(--card);
  --on: var(--ink);
  --dim: #8a5a6c;
  --accent: var(--ink);
  --accent-on: var(--card);
  --name: var(--on);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
}

.project:nth-of-type(even) {
  --side: -1;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
}

.project:nth-of-type(even) .project-panel {
  order: -1;
}

/* Each project's colours. The page takes them too while that project is
   on screen (pages.js sets data-at), so the title, the scroll hint and the
   scrollbar always suit the cloud they're on. --pop is its pink. */
.project-memoir,
.page[data-at="memoir"] {
  --pop: #ff8fb6;
  --panel: #000;
  --on: #f5f5f7;
  --dim: #a1a1a6;
  --accent: #f5f5f7;
  --accent-on: #000;
}

.project-snappy,
.page[data-at="snappy"] {
  --pop: #f72585;
  --panel: #fffdf4;
  --on: #000;
  --dim: #7a6f76;
  --accent: #ff70a6;
  --accent-on: #000;
}

.project-about,
.page[data-at="about"] {
  --pop: var(--pink-deep);
  --panel: #ffc9dc;
  --on: var(--ink);
  --dim: #8a4d66;
  --name: var(--pink-deep);
}

.project-contact,
.page[data-at="contact"] {
  --pop: var(--pink-deep);
  --panel: #ffd3c4;
  --on: var(--ink);
  --dim: #8a4d5a;
  --name: var(--pink-deep);
}

.project-chess,
.page[data-at="chess"] {
  --pop: #f4abc9;
  --panel: #17171b;
  --on: #f6f0f3;
  --dim: #a6a1ab;
  --accent: #f4abc9;
  --accent-on: #17171b;
  --name: #f4abc9;
}

/* the pictures: a big one, and a small one tucked under its outer corner */
.project-shots {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(74%, 40rem);
  margin: clamp(6.5rem, 17vh, 9rem) 0 clamp(5rem, 15vh, 8rem);
}

.shot {
  display: block;
  height: auto;
  border-radius: clamp(0.9rem, 1.3vw, 1.4rem);
  /* a hairline, so a dark picture still has an edge on a dark cloud */
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 1.6rem 2.6rem -1.3rem rgb(0 0 0 / 0.55), 0 0.15rem 0.5rem rgb(0 0 0 / 0.16);
  will-change: transform, opacity;
}

.shot-main {
  width: 100%;
  rotate: calc(var(--side) * -2deg);
}

.shot-side {
  position: absolute;
  bottom: -16%;
  left: -6%;
  width: 36%;
  rotate: calc(var(--side) * 5deg);
}

.project:nth-of-type(even) .shot-side {
  left: auto;
  right: -6%;
}

.project-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 9vh, 6rem) clamp(1.5rem, 6vw, 6.5rem) clamp(2.5rem, 7vh, 5rem) clamp(1rem, 2vw, 2.5rem);
  color: var(--on);
  will-change: transform;
}

.project:nth-of-type(even) .project-panel {
  flex-direction: row-reverse;
  justify-content: center;
  padding-right: clamp(1.5rem, 7vw, 8rem);
  padding-left: clamp(1.5rem, 6vw, 6.5rem);
}

/* without WebGL there's no cloud to dye: the whole section is simply that colour */
.no-webgl .project {
  background: var(--panel);
}

.project-words {
  width: min(100%, 35rem);
}

.project-kind {
  margin: 0;
  color: var(--dim);
  font-size: clamp(0.82rem, 0.25vw + 0.76rem, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-name {
  margin: 0.12em 0 0;
  color: var(--name);
  font: 700 clamp(3rem, 5vw + 1rem, 6.5rem) / 0.95 var(--font-puff);
  letter-spacing: -0.015em;
}

.project-sum {
  margin: 1.4rem 0 0;
  font-size: clamp(1.02rem, 0.35vw + 0.94rem, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
}

.project-points {
  display: grid;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--on);
  font-size: clamp(0.98rem, 0.25vw + 0.92rem, 1.12rem);
  font-weight: 500;
  line-height: 1.4;
}

.project-points li {
  position: relative;
  padding-left: 1.6em;
}

/* a little four-point sparkle for a bullet */
.project-points li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.22em;
  width: 0.95em;
  height: 0.95em;
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.7rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.62em 1.15em 0.7em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--on);
  color: var(--on);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: scale 0.4s var(--spring), translate 0.4s var(--spring);
}

.btn-main {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-on);
}

.btn:hover {
  translate: 0 -0.15rem;
  scale: 1.05;
}

.btn:active {
  scale: 0.96;
  transition-duration: 0.1s;
}

/* Snappy's own buttons: a black outline and a hard little shadow */
.project-snappy .btn {
  box-shadow: inset 0 0 0 2.5px #000, 0.18rem 0.24rem 0 #000;
}

/* ---------- Memoir, in its own hand ---------- */

/* Each project can dress its words its own way. Memoir's is its own: the
   clock, MEMOIR set as its wordmark (Unbounded at its heaviest, in platinum
   with a fine grain, as on memoir.minavian.com), and Inter for the rest,
   quiet and exact. Both faces are under the Open Font License (fonts/). */
@font-face {
  font-family: "Memoir Unbounded";
  src: url("fonts/Unbounded-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Memoir Inter";
  src: url("fonts/InterVariable-memoir.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.project-memoir .project-words {
  width: min(100%, 36rem);
  font-family: "Memoir Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.project-mark {
  display: block;
  width: clamp(2.75rem, 3.6vw, 3.75rem);
  height: auto;
  margin: 0 0 clamp(1.1rem, 2.6vh, 1.8rem);
}

/* the clock beside the name, about as tall as its capitals */
.project-heading {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.3rem);
}

.project-heading .project-mark {
  flex: none;
  width: clamp(2.4rem, 3.9vw + 0.3rem, 4.6rem);
  margin: 0;
}

.project-heading .project-name,
.project-memoir .project-heading .project-name {
  margin-top: 0;
}

/* The clock, in parts so it can move (memoir.js): a ring that fades round
   clockwise, a knob over the ring's seam, and two hands. These are Memoir's
   own measures: the ring runs from radius 59 to 76 of a 168 box, the knob is
   15.5 round with a hole through its middle, the hands 11 thick. */
@property --lg-band { syntax: "<percentage>"; inherits: true; initial-value: 77.632%; }

.logo {
  --lg-ink: 255 255 255;
  position: relative;
  aspect-ratio: 1;
}

.lg-clock {
  position: absolute;
  inset: 0;
}

.lg-clock > i,
.lg-sec > i {
  position: absolute;
  display: block;
}

/* the knob rides on a layer the size of the clock, so it can go round the ring */
.lg-sec {
  inset: 0;
}

/* (nothing of it shows until its entrance plays) */
.logo.hold .lg-clock > i {
  opacity: 0;
}

.lg-ring {
  inset: 4.762%;
  border-radius: 50%;
  /* cut away under the knob's middle */
  -webkit-mask-image: radial-gradient(4.605% 4.605% at 50% 5.592%, transparent calc(100% + 0.4px), #000 calc(100% + 1.2px));
  mask-image: radial-gradient(4.605% 4.605% at 50% 5.592%, transparent calc(100% + 0.4px), #000 calc(100% + 1.2px));
}

.lg-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(rgb(var(--lg-ink) / 0.937), rgb(var(--lg-ink) / 0.84) 45deg, rgb(var(--lg-ink) / 0.676) 125deg,
    rgb(var(--lg-ink) / 0.5) 205deg, rgb(var(--lg-ink) / 0.332) 285deg, rgb(var(--lg-ink) / 0.181));
  -webkit-mask-image: radial-gradient(circle closest-side, transparent calc(var(--lg-band) - 0.3px), #000 calc(var(--lg-band) + 0.3px), #000 calc(100% - 0.6px), transparent);
  mask-image: radial-gradient(circle closest-side, transparent calc(var(--lg-band) - 0.3px), #000 calc(var(--lg-band) + 0.3px), #000 calc(100% - 0.6px), transparent);
}

.lg-knob {
  left: 40.774%;
  top: 0.595%;
  width: 18.452%;
  height: 18.452%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, transparent calc(45.161% - 0.4px), rgb(var(--lg-ink)) calc(45.161% + 0.4px));
}

.lg-min,
.lg-hour {
  left: 46.726%;
  top: 51.488%;
  height: 6.548%;
  border-radius: 99px;
}

.lg-min {
  width: 35.119%;
  transform-origin: 9.322% 50%;
  transform: rotate(-30deg);
  background: linear-gradient(90deg, rgb(var(--lg-ink)) 9.322%, rgb(var(--lg-ink) / 0.92) 33.729%, rgb(var(--lg-ink) / 0.513) 90.678%);
}

.lg-hour {
  width: 26.786%;
  transform-origin: 12.222% 50%;
  transform: rotate(215deg);
  background: rgb(var(--lg-ink));
}

.project-memoir .project-kind {
  color: #8e8e93;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-memoir .project-name {
  width: fit-content;
  margin-top: 0.3em;
  background:
    url("img/memoir-grain.png") 0 0 / 0.65em 0.65em,
    linear-gradient(rgb(255 255 255 / 0.1), transparent 45%, rgb(0 0 0 / 0.1) 80%, rgb(255 255 255 / 0.04)),
    linear-gradient(76deg, #a4a4ac, #dedee3 30%, #fff 55%, #e9e9ee 78%, #fff);
  background-blend-mode: soft-light, normal, normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 900 clamp(2.5rem, 4.6vw + 0.6rem, 5.5rem) / 1 "Memoir Unbounded", "Memoir Inter", sans-serif;
  letter-spacing: 0;
}

/* MEMOIR, a letter to a box (memoir.js), so each letter can thin and thicken
   in its own place: the face is variable, and the word never shifts. Each
   letter shows its slice of the one platinum and grain (--wm-x is where the
   letter starts in the word, --wm-w the whole word's width). */
.project-memoir .project-name.is-split {
  display: flex;
  background: none;
  white-space: nowrap;
}

.project-name .l {
  position: relative;
  display: block;
  text-align: center;
  color: transparent;
}

.project-name .l::after {
  content: attr(data-t);
  position: absolute;
  inset: 0;
  background:
    url("img/memoir-grain.png") var(--wm-x, 0) 0 / 0.65em 0.65em,
    linear-gradient(rgb(255 255 255 / 0.1), transparent 45%, rgb(0 0 0 / 0.1) 80%, rgb(255 255 255 / 0.04)),
    linear-gradient(76deg, #a4a4ac, #dedee3 30%, #fff 55%, #e9e9ee 78%, #fff) var(--wm-x, 0) 0 / var(--wm-w, 100%) 100% no-repeat;
  background-blend-mode: soft-light, normal, normal;
  -webkit-background-clip: text;
  background-clip: text;
}

.project-lead {
  margin: clamp(1.2rem, 3vh, 2rem) 0 0;
  color: #f5f5f7;
  font-size: clamp(1.3rem, 0.9vw + 1.05rem, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.project-lead span {
  color: #8e8e93;
}

.project-memoir .project-sum {
  margin-top: 0.9rem;
  color: #a1a1a6;
  font-size: clamp(0.98rem, 0.2vw + 0.93rem, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* its points as a ruled list, like the rows in Memoir's own report */
.project-memoir .project-points {
  gap: 0;
  margin-top: clamp(1.1rem, 2.6vh, 1.6rem);
  border-top: 1px solid rgb(255 255 255 / 0.13);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.project-memoir .project-points li {
  padding: 0.78em 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.13);
}

.project-memoir .project-points li::before {
  display: none;
}

.project-memoir .btn {
  padding: 0.82em 1.35em;
  background: #1c1c1e;
  box-shadow: none;
  color: #f5f5f7;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-memoir .btn-main {
  background: #f5f5f7;
  color: #000;
}

/* ---------- about me ---------- */

/* just the words, in the site's own ink, in the middle of the pink cloud */
.project-about,
.project-contact {
  grid-template-columns: 1fr;
  justify-items: center;
}

.project-about .project-panel,
.project-contact .project-panel {
  padding-left: clamp(1.5rem, 6vw, 6.5rem);
}

.project-contact .project-name {
  font-size: clamp(2.6rem, 4vw + 1rem, 5.2rem);
}

/* ---------- contact & socials ---------- */

/* each way to reach me: its icon and its name, no address showing */
.socials {
  display: grid;
  gap: 0.25rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.35em 0.5em 0.35em 0.1em;
  border-radius: 0.6em;
  color: var(--on);
  font: 700 clamp(1.15rem, 0.6vw + 1rem, 1.5rem) / 1.2 var(--font-puff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.socials svg {
  width: 1.45em;
  height: 1.45em;
  flex: none;
  transition: rotate 0.5s var(--spring), scale 0.5s var(--spring);
}

.socials a span {
  transition: translate 0.5s var(--spring);
}

.socials a:hover {
  color: var(--pop);
}

.socials a:hover svg {
  rotate: -9deg;
  scale: 1.18;
}

.socials a:hover span {
  translate: 0.15em 0;
}

.socials a:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 0.1rem;
}

.project-about .project-name {
  font-size: clamp(2.6rem, 4vw + 1rem, 5.2rem);
}

.project-about .project-lead {
  color: var(--on);
  letter-spacing: -0.01em;
}

.project-about .project-lead span {
  color: var(--pink-deep);
}

.project-about .project-sum + .project-sum {
  margin-top: 0.9rem;
}

/* Each project's pieces wait a little out of place until it comes into view
   (pages.js adds .is-seen), then glide in one after another. */
.project-panel,
.shot,
.project-words > * {
  transition: opacity 0.6s ease-out, transform 1.15s var(--settle);
  transition-delay: calc(var(--i, 0) * 75ms);
}

.shot-side {
  --i: 2;
}

.project-words > :nth-child(1) { --i: 2; }
.project-words > :nth-child(2) { --i: 3; }
.project-words > :nth-child(3) { --i: 4; }
.project-words > :nth-child(4) { --i: 5; }
.project-words > :nth-child(5) { --i: 6; }
.project-words > :nth-child(6) { --i: 7; }
.project-words > :nth-child(7) { --i: 8; }

.project:not(.is-seen) .project-panel {
  transform: translate3d(calc(var(--side) * 5%), 0, 0);
}

.project:not(.is-seen) .shot-main {
  opacity: 0;
  transform: translate3d(calc(var(--side) * -2.5rem), 2.5rem, 0) rotate(calc(var(--side) * -5deg));
}

.project:not(.is-seen) .shot-side {
  opacity: 0;
  transform: translate3d(0, 3rem, 0) rotate(calc(var(--side) * 9deg)) scale(0.85);
}

.project:not(.is-seen) .project-words > * {
  opacity: 0;
  transform: translate3d(calc(var(--side) * 1.8rem), 0, 0);
}

@media (hover: hover) {
  .shot {
    transition: opacity 0.6s ease-out, transform 1.15s var(--settle), rotate 0.6s var(--spring), scale 0.6s var(--spring);
  }

  .project.is-seen .shot:hover {
    rotate: 0deg;
    scale: 1.035;
    transition-delay: 0s;
  }
}

/* ---------- a nudge to scroll ---------- */

/* comes up in the corner after ten seconds without scrolling (pages.js) */
.scroll-hint {
  position: fixed;
  right: clamp(1rem, 3.2vw, 3.2rem);
  bottom: clamp(1rem, 4vh, 2.4rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6em 0.8em 0.66em 1.1em;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel, var(--card)) 45%, transparent);
  box-shadow: inset 0 0 0 2px currentColor;
  color: var(--on, var(--ink));
  font: 700 1.05rem / 1 var(--font-puff);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 1rem;
  transition: opacity 0.5s ease, translate 0.8s var(--settle), visibility 0s 0.5s, color 0.6s ease, background-color 0.6s ease;
  -webkit-appearance: none;
  appearance: none;
}

.scroll-hint.is-on {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}

.scroll-hint svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-hint.is-on svg {
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(-0.12em); }
  50% { transform: translateY(0.22em); }
}

/* ---------- hearts + sparkles ---------- */

.fx {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.bit {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  will-change: transform, opacity;
}

.bit svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- small + tall screens ---------- */

@media (max-aspect-ratio: 4/5) {
  :root {
    --s: clamp(3rem, 19vw, 7rem);
  }

  .hero {
    justify-content: flex-start;
    padding-top: 12vh;
    padding-top: 12dvh;
  }
}

/* Short windows: a project's words shrink as a whole, so each project still
   fits the screen (and the page can keep moving a project at a time). */
@media (min-width: 54.01rem) and (max-height: 780px) {
  .project-words { zoom: 0.92; }
  .project-shots { width: min(66%, 34rem); }
}

@media (min-width: 54.01rem) and (max-height: 700px) {
  .project-words { zoom: 0.84; }
  .project-shots { width: min(60%, 30rem); }
}

@media (min-width: 54.01rem) and (max-height: 630px) {
  .project-words { zoom: 0.75; }
  .project-shots { width: min(54%, 26rem); }
}

@media (min-width: 54.01rem) and (max-height: 560px) {
  .project-words { zoom: 0.66; }
}

/* narrow screens: one column, the pictures and then the words on their dyed cloud */
@media (max-width: 54rem) {
  /* the page scrolls under the title here, so it gets a patch of the cloud's own colour to sit on */
  .back {
    padding: 0.28em 0.6em 0.34em 0.3em;
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel, var(--card)) 78%, transparent);
    font-size: 1.55rem;
    transition: color 0.6s ease, background-color 0.6s ease;
  }

  .project,
  .project:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .project:nth-of-type(even) .project-panel {
    order: 0;
  }

  .project-shots {
    width: min(72%, 24rem);
    margin: 5.6rem auto 4.6rem;
  }

  .shot-side {
    bottom: -24%;
    width: 38%;
  }

  .project-panel,
  .project:nth-of-type(even) .project-panel {
    flex-direction: row;
    padding: 0 1.6rem 4.5rem;
  }

  .project:not(.is-seen) .project-panel {
    transform: translate3d(0, 3rem, 0);
  }

  .project:not(.is-seen) .project-words > * {
    transform: translate3d(0, 1.2rem, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eye,
  .scroll-hint.is-on svg,
  .spot-tag {
    animation: none;
  }

  .spot-tag,
  .spot-bare .spot-tag,
  .tag-words > span,
  .spot-bare .tag-words > span,
  .spot-bare .tag-words > .tag-face,
  .tag-face > span,
  .spot-bare .tag-face > span,
  .btn,
  .back svg,
  .back-words span,
  .shot,
  .project-panel,
  .project-words > * {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }

  .is-landing:not(.is-flying) .spot-tag {
    transition-delay: 0s;
  }
}
