/* =========================================================
   My Vision — editorial letter, styled like the reference story pages
   ========================================================= */

html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }

/* ---------- Opening screen ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #1b1d20;
  color: #fff;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.06);
  animation: heroIn 2.2s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.35) 100%);
}
.hero__label {
  position: absolute;
  top: clamp(56px, 7vw, 90px);
  left: clamp(20px, 4.2vw, 60px);
  margin: 0;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.01em;
  opacity: 0;
  animation: fadeIn 1s var(--ease) .4s forwards;
}
.hero__label--flip {
  top: auto;
  left: auto;
  bottom: clamp(24px, 3.5vw, 48px);
  right: clamp(20px, 4.2vw, 60px);
  transform: rotate(180deg);
}

/* white tab at the bottom, like the reference */
.hero__tab {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(396px, calc(100vw - 2 * var(--gutter)));
  height: 66px;
  padding: 0 24px;
  background: var(--paper);
  color: var(--ink);
  transform: translate(-50%, 100%);
  animation: tabUp .9s var(--ease) .5s forwards;
}
@keyframes tabUp { to { transform: translate(-50%, 0); } }
.hero__tab-title { font-size: 18px; font-weight: 400; }
.hero__scroll { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hero__scroll .arrow-box { --size: 28px; border-width: 1px; }
.arrow-box--down { transform: rotate(90deg); }

/* ---------- The letter: plain, like a printed letter ---------- */
.letter {
  --col: 640px;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(90px, 11vw, 150px);
  color: var(--ink);
}
.letter p {
  margin: 0 0 1em;
  font-size: 23px;
  line-height: 1.5;
}
.letter a:not(.letter__next) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.letter a:not(.letter__next):hover { text-decoration: none; }
.letter strong { font-weight: 600; }

.letter__lead {
  margin-bottom: .9em !important;
  font-size: clamp(36px, 4.4vw, 56px) !important;
  font-weight: 600;
  line-height: 1.05 !important;
  letter-spacing: -.015em;
}
.letter h2 {
  margin: 2.6em 0 .6em;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}
.letter__close {
  margin-top: 2.6em !important;
  font-weight: 600;
}
.letter__sign { margin-top: 1.6em !important; }
.letter__next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-size: 16px;
}
.letter__next .arrow-box { --size: 28px; }

/* pictures inside the letter */
.letter figure { margin: 1.6em 0 1.8em; }
.letter figure img { display: block; width: 100%; height: auto; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .letter p, .letter h2 { font-size: 19px; }
  .hero__tab-title { font-size: 16px; }
}
/* menu bar and white tab sit centred and are wide on narrower screens: keep the labels clear of them */
@media (max-width: 1100px) {
  .hero__label { top: 100px; }
  .hero__label--flip { top: auto; bottom: 96px; }
}
