:root {
  --paper: #f3f0ed;      /* the ivory of the page */
  --ink: #181615;        /* the text */
  --accent: #a2432f;     /* the one accent: madder red, on the arrow, the mark and the glint */
  --line: rgba(24, 22, 21, 0.28);
  --serif: 'Bodoni Moda Variable', 'Bodoni Moda', Didot, 'Times New Roman', serif;
  --sans: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  --size: min(9vw, 10.5vh);  /* the size of the sentence, measured on both sides */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
/* a faint paper grain and a soft light from the top */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(140% 120% at 50% 110%, rgba(24, 22, 21, 0.05), transparent 55%);
  pointer-events: none;
}

/* ---- the head ---- */
.head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.4vh, 30px) clamp(16px, 3vw, 36px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.brand__mark .brand__thin { stroke: var(--accent); stroke-width: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.01em;
  font-variation-settings: 'opsz' 14;
}
.nav { display: flex; gap: clamp(12px, 2.4vw, 30px); }
.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: 'wdth' 92;
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}
@media (hover: hover) {
  .nav a:hover { font-variation-settings: 'wdth' 112; color: var(--accent); }
}

/* ---- the sentence ---- */
.phrase {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--size);
  line-height: 0.98;
  text-align: center;
  pointer-events: none;
}
.half { display: block; will-change: transform; }
.line { display: block; white-space: nowrap; }
.up {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 96;
}
.phrase em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 60;
}
.ch { display: inline-block; transform-origin: 50% 100%; }
.half--bottom .ch { transform-origin: 50% 0%; }

/* ---- the window ---- */
.win {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(50% 50% 50% 50%);
  background: #d9d3cc;
}
.win__photo { position: absolute; inset: 0; will-change: transform; }
.win__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  filter: saturate(0.85) contrast(1.06) brightness(0.96);
}
/* a warm grade and a soft vignette, so the white silk keeps its folds on the ivory page */
.win__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 90% at 50% 45%, transparent 55%, rgba(24, 22, 21, 0.22)),
    linear-gradient(180deg, rgba(243, 240, 237, 0) 60%, rgba(24, 22, 21, 0.12));
  mix-blend-mode: multiply;
}
.frame {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(24, 22, 21, 0.35);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}
.frame__glint {
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.4) 48%, rgba(162, 67, 47, 0.08) 54%, transparent 80%);
  transform: translateX(-120%) skewX(-12deg);
  mix-blend-mode: screen;
}

.caption {
  position: absolute;
  z-index: 3;
  left: 0; top: 0;
  margin: 0;
  font-size: clamp(9px, 1.5vh, 11px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 90;
  pointer-events: none;
  white-space: nowrap;
}
.caption__row { display: block; overflow: hidden; }
.caption__row > span { display: inline-block; }
.caption__row--dim { color: rgba(24, 22, 21, 0.5); }

/* ---- the foot ---- */
.foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.4vh, 30px) clamp(16px, 3vw, 36px);
}
.enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 94;
  padding: 10px 2px;
  transition: font-variation-settings 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.enter__arrow {
  width: 22px; height: 12px;
  fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .enter:hover { font-variation-settings: 'wdth' 116; }
  .enter:hover .enter__arrow { transform: translateX(5px); }
}
.enter:active .enter__arrow { transform: translateX(2px) scaleX(0.9); }
.foot__note {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(24, 22, 21, 0.55);
  font-variation-settings: 'opsz' 14;
}

/* ---- the second page ---- */
.study {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.study[hidden] { display: block; visibility: hidden; }
.back {
  position: absolute;
  top: clamp(14px, 3.4vh, 30px);
  left: clamp(16px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(24, 22, 21, 0.18);
  border-radius: 999px;
  background: rgba(243, 240, 237, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 94;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 22px -14px rgba(24, 22, 21, 0.5);
  transition: font-variation-settings 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.back__arrow {
  width: 18px; height: 10px;
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .back:hover { font-variation-settings: 'wdth' 114; }
  .back:hover .back__arrow { transform: translateX(-4px); }
}
.back:active { transform: scale(0.97); }
.study__title {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  bottom: clamp(18px, 5vh, 44px);
  max-width: min(80vw, 520px);
}
.study__title > * { overflow: hidden; margin: 0; }
.study__title [data-in] { display: inline-block; }
.study__kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(24, 22, 21, 0.6);
  font-variation-settings: 'wdth' 92;
  margin-bottom: 6px;
}
.study__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: min(6vw, 7vh);
  line-height: 1.02;
  padding-bottom: 0.08em;
}
.study__name em { font-style: italic; font-variation-settings: 'opsz' 60; }
.study__line {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(24, 22, 21, 0.72);
}

/* ---- the phone ---- */
@media (max-width: 560px) {
  .nav a:nth-child(n+2) { display: none; }
  .foot__note { display: none; }
  .foot { justify-content: center; }
  :root { --size: min(10vw, 9vh); }
}
