/* Velure: a minimal intro. Five prints, made in code as fields of tone on white paper, rise one at a time onto an
   arc; under them one word in Fraunces names each kind of work. Only one print wears the accent. */
:root {
  --paper: #f8f6f1;     /* the page, the paper of the site that inspired it */
  --ink: #141212;       /* the words */
  --muted: #b3aca2;     /* the ticks and the small captions */
  --soft: #7d766d;      /* the line under the studio name */
  --print: #fffdf9;     /* the white border of every print */
  --accent: #c8452e;    /* the one print in vermilion, and the mark under the word */
  --shade: #2a2016;     /* the colour of the shadows under the prints */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces Variable', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* the prints: the slot is placed and turned by the script, the print inside is what GSAP moves */
.fan {
  position: absolute;
  inset: 0;
}

.slot {
  position: absolute;
  left: 0;
  top: 0;
}

.print {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 5% 5% 15%;
  background: var(--print);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(42, 32, 22, 0.06), 0 10px 24px -12px rgba(42, 32, 22, 0.32);
  opacity: 0;
}

.print-field {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* a soft light across every field, so the tone reads like a photograph and not like a swatch */
.print-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 30% 18%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.14));
}

/* the horizon of the studio wall: one hairline, where the backdrop paper meets the floor */
.print-floor {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.print-name {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 3.5%;
  font-size: var(--cap, 9px);
  font-variation-settings: 'opsz' 9;
  font-weight: 420;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

/* the word under the arc, and the hairline with one tick for every kind of work */
.caption {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.word {
  position: relative;
  height: 1.02em;
  font-size: var(--size, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  white-space: nowrap;
}

.word-set {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 0 0.04em;
}

.word-letter {
  display: inline-block;
}

.rule {
  position: relative;
  width: var(--rule, 160px);
  height: 9px;
  margin-top: 0.7em;
  font-size: var(--size, 64px);
  border-top: 1px solid var(--muted);
  transform-origin: 50% 0;
}

.rule-tick {
  position: absolute;
  top: -1px;
  width: 1px;
  height: 6px;
  background: var(--muted);
}

.rule-mark {
  position: absolute;
  top: -1px;
  left: 0;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--accent);
}

/* the studio name that takes the place of the prints */
.brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand-name {
  margin: 0;
  display: flex;
  overflow: hidden;
  padding: 0.02em 0.06em 0.06em;
  font-size: min(19vw, 22vh, 220px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}

.brand-letter {
  display: inline-block;
}

.brand-line {
  margin: min(2.4vh, 18px) 0 0;
  font-size: min(3.4vw, 2.6vh, 15px);
  font-variation-settings: 'opsz' 12;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0;
}
