:root {
  --bg: #eeece6;
  --ink: #14161b;
  --paper: #fbfaf6;
  --paper-ink: #1d2230;
  --paper-soft: #c9cbd2;
  --glass-top: rgba(74, 84, 106, 0.5);
  --glass-bottom: rgba(30, 36, 49, 0.74);
  --on-glass: #f6f5f1;
  --on-glass-soft: rgba(246, 245, 241, 0.62);
  --accent: #ff6a3d;
  --accent-soft: #ffb28a;
  --slate: #2b3242;
  --shadow: 21, 24, 33;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(90% 70% at 50% 18%, #f8f7f3 0%, rgba(248, 247, 243, 0) 64%),
    radial-gradient(60% 40% at 50% 100%, rgba(var(--shadow), 0.05), rgba(var(--shadow), 0) 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px;
  overflow: hidden;
}

/* the folder is measured on both sides of the window: the em is a 24th of its width */
.scene {
  --w: min(360px, 74vw, 62vh);
  width: var(--w);
  font-size: calc(var(--w) / 24);
  padding-top: calc(var(--w) * 0.2);
  padding-bottom: calc(var(--w) * 0.05);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 240 / 172;
}

/* two soft shadows: a wide one far below and a tight one close to the folder */
.shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2%;
  height: 22%;
  border-radius: 50%;
  pointer-events: none;
}
.shadow--far {
  background: radial-gradient(closest-side, rgba(var(--shadow), 0.3), rgba(var(--shadow), 0));
  filter: blur(1.1em);
  transform-origin: 50% 50%;
}
.shadow--near {
  left: 4%;
  right: 4%;
  bottom: -0.6%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(var(--shadow), 0.42), rgba(var(--shadow), 0));
  filter: blur(0.3em);
}

.tilt { position: absolute; inset: 0; }

.folder {
  position: absolute;
  inset: 0;
  outline: none;
  cursor: pointer;
  transform-origin: 50% 100%;
}
.folder:focus-visible .front { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.08em 0.1em rgba(var(--shadow), 0.25));
}
.back__tab {
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  font-size: 6.4px;
  font-weight: 640;
  letter-spacing: 0.16em;
  fill: rgba(255, 255, 255, 0.5);
  font-variation-settings: "wdth" 112;
}

/* ---- the three sheets ---- */
.sheets { position: absolute; inset: 0; }
.sheet {
  position: absolute;
  top: 13%;
  width: 42%;
  aspect-ratio: 0.76;
}
.sheet--logo { left: 8%; }
.sheet--palette { left: 50%; }
.sheet--palette .paper__cap { text-align: right; }
.sheet--web { left: 29%; top: 11%; }
.sheet__par, .sheet__paper { position: absolute; inset: 0; }
.sheet__paper {
  border-radius: 0.42em;
  padding: 0.62em 0.66em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 30%),
    var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(var(--shadow), 0.05),
    0 0.05em 0.12em rgba(var(--shadow), 0.22),
    0 0.5em 1.2em rgba(var(--shadow), 0.2);
  overflow: hidden;
}
/* paper grain */
.sheet__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.paper__cap {
  display: block;
  font-size: 0.42em;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d909a;
}

/* logo sheet */
.logo { display: block; width: 58%; margin: 0.55em auto 0.1em; }
.paper__word {
  display: block;
  text-align: center;
  font-size: 0.86em;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--paper-ink);
  font-variation-settings: "wdth" 108;
}
.paper__rule { display: block; height: 1px; margin: 0.55em 0 0.45em; background: rgba(var(--shadow), 0.1); }
.paper__bars { display: grid; gap: 0.28em; }
.paper__bars i { display: block; height: 0.22em; border-radius: 1em; background: var(--paper-soft); }
.paper__bars i:last-child { width: 62%; }

/* palette sheet */
.swatch {
  position: relative;
  display: block;
  height: 1.32em;
  margin-top: 0.3em;
  border-radius: 0.24em;
}
.swatch:first-of-type { margin-top: 0.5em; }
.swatch b {
  position: absolute;
  right: 0.42em;
  bottom: 0.24em;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.swatch--a { background: linear-gradient(90deg, #ff6a3d, #ff8a5c); color: #fff; }
.swatch--b { background: linear-gradient(90deg, #ffcfb4, #ffe2cf); color: #7a3d22; }
.swatch--c { background: linear-gradient(90deg, #2b3242, #3a4357); color: #e9eaee; }
.swatch--d { background: #eeece6; color: #6b6e78; box-shadow: inset 0 0 0 1px rgba(var(--shadow), 0.08); }
.specimen {
  display: block;
  margin-top: 0.2em;
  text-align: right;
  font-size: 2.1em;
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: -0.04em;
  color: var(--paper-ink);
  font-variation-settings: "wdth" 118;
}

/* website sheet */
.web__nav { display: flex; align-items: center; gap: 0.3em; }
.web__nav i { display: block; width: 1.1em; height: 0.18em; border-radius: 1em; background: var(--paper-soft); }
.web__nav .web__mark { width: 0.56em; height: 0.56em; border-radius: 0.16em; background: var(--accent); margin-right: auto; }
.web__hero {
  position: relative;
  display: block;
  height: 4.4em;
  margin-top: 0.5em;
  border-radius: 0.3em;
  overflow: hidden;
  background: linear-gradient(180deg, #2b3242 0%, #4a4660 48%, #e0785a 86%, #ffb28a 100%);
}
.web__sun {
  position: absolute;
  left: 50%;
  bottom: 0.8em;
  width: 2.2em;
  height: 1.1em;
  margin-left: -1.1em;
  border-radius: 1.1em 1.1em 0 0;
  background: linear-gradient(180deg, #ffe2cf, #ffb28a);
}
.web__line { position: absolute; left: 0; right: 0; bottom: 0.8em; height: 1px; background: rgba(255, 255, 255, 0.55); }
.web__head { display: grid; gap: 0.26em; margin-top: 0.55em; }
.web__head i { display: block; height: 0.42em; border-radius: 0.1em; background: var(--paper-ink); width: 88%; }
.web__head i:last-child { width: 56%; }
.web__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3em; margin-top: 0.6em; }
.web__cards i { display: block; height: 1.7em; border-radius: 0.2em; background: #efeee9; box-shadow: inset 0 0 0 1px rgba(var(--shadow), 0.06); }
.web__cards i:first-child { background: linear-gradient(160deg, #ffe2cf, #ffcfb4); }

/* ---- the frosted glass front ---- */
.front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 31%;
  border-radius: 0.9em;
  overflow: hidden;
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(0.75em) saturate(1.35);
  backdrop-filter: blur(0.75em) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 -0.3em 1em rgba(var(--shadow), 0.22);
  color: var(--on-glass);
}
.front::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* the light the glass takes when it leans forward */
.front__lit {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: inherit;
}
.front__sheen { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.front__band {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 38%;
  opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-16deg);
}

.front__in {
  position: relative;
  height: 100%;
  padding: 0.95em 1.05em 0.9em;
  display: flex;
  flex-direction: column;
}
.front__top { display: flex; align-items: center; justify-content: space-between; }
.chip {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.38em 0.8em 0.4em;
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.year { font-size: 0.62em; font-weight: 560; color: var(--on-glass-soft); font-variant-numeric: tabular-nums; }
.title {
  --wd: 100;
  margin-top: auto;
  font-size: 2.05em;
  line-height: 1;
  font-weight: 640;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" var(--wd);
  white-space: nowrap;
}
.sub { margin-top: 0.42em; font-size: 0.7em; color: var(--on-glass-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.front__foot { display: flex; align-items: center; gap: 0.9em; margin-top: auto; }
.meta { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.62em; font-weight: 560; white-space: nowrap; }
.meta svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.meta--soft { color: var(--on-glass-soft); }

.open {
  position: relative;
  margin-left: auto;
  width: 2.1em;
  height: 2.1em;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.open__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 30% 20%, var(--accent-soft), var(--accent));
  opacity: 0;
  transform: scale(0.4);
}
.open__ico {
  position: relative;
  width: 0.95em;
  height: 0.95em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #15161c;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(21, 22, 28, 0.35));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* the logo sits left, so the website sheet in front never hides the wordmark */
.sheet--logo .logo { width: 50%; margin-left: 0.15em; }
.sheet--logo .paper__word { text-align: left; padding-left: 0.1em; font-size: 0.74em; }
