/* ==========================================================================
   সম্পর্ক 101 — "Par Avion". The page is one love letter: written,
   stamped, posted and delivered. Cream paper, airmail stripes, postmarks.
   ========================================================================== */

.sh-page {
  --paper: #ffe5c8;
  --paper-2: #fbd9b6;
  --navy: #1f2f5c;
  --ink-2: rgba(31, 47, 92, 0.72);
  --blue: #1759a3;
  --red: #d52027;
  --air-r: #ef2b2d;
  --air-b: #337bc0;
  --pink: #ec008c;
  --sky: #bfe0ee;
  --mint: #cfe6b0;
  --kraft: #8a6a4a;
  --sh-serif: "Fraunces", Georgia, serif;
  --sh-hand: "Caveat", cursive;
  --sh-bn: "Baloo Da 2", var(--font-sans);
  --sh-gap: 140px;
  --stripes: repeating-linear-gradient(-45deg, var(--air-r) 0 11px, transparent 11px 18px, var(--air-b) 18px 29px, transparent 29px 36px);
  background: var(--paper) url("../images/shomporko/paper.webp") 0 0 / 400px;
  color: var(--navy);
}

.sh-page .brand {
  color: var(--navy);
}

.sh-page .site-header .pill-chat {
  background: var(--red);
  color: #fff;
}

.sh {
  position: relative;
  font-family: var(--font-sans);
}

.sh [lang="bn"] {
  font-family: var(--sh-bn);
}

.sh-wrap {
  position: relative;
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

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

figure {
  margin: 0;
}

.sh img[data-zoom] {
  cursor: zoom-in;
}

.sh-heart {
  display: block;
  fill: currentColor;
}

/* ---------- Postmark ---------- */
.sh-pm {
  display: block;
  width: 170px;
  height: auto;
  overflow: visible;
  opacity: 0.86;
  transform: rotate(-12deg);
}

.sh-pm-ink {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.sh-pm text {
  fill: var(--navy);
  stroke: none;
  font-family: var(--sh-bn);
  font-weight: 700;
}

.sh-pm-l {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.sh-pm-n {
  font-size: 34px;
}

/* ---------- Section rhythm ---------- */
.sh-sec {
  position: relative;
  padding: var(--sh-gap) 0 0;
}

.sh-head {
  position: relative;
  max-width: 760px;
}

.sh-head > .sh-pm {
  position: absolute;
  top: -26px;
  right: -230px;
}

.sh-eyebrow {
  margin: 0;
  font-family: var(--sh-hand);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
}

.sh-head h2 {
  margin-top: 10px;
  font-family: var(--sh-serif);
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.sh-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.sh-hand {
  font-family: var(--sh-hand);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue);
}

/* a framed piece of paper: white border, a soft shadow, a slight tilt */
.sh-paperfig img,
.sh-bento img,
.sh-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   HERO — the logo stamps itself; the book slides out of an airmail envelope
   ========================================================================== */
.sh-hero {
  padding: 72px 0 40px;
}

.sh-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.sh-kicker {
  margin: 0 0 18px;
  font-family: var(--sh-hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
}

.sh-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1174 / 799;
}

.sh-logo .lg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sh-logo-hero {
  width: min(560px, 100%);
}

.sh-hero-line {
  max-width: 520px;
  margin: 26px 0 0;
  font-family: var(--sh-serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 400;
  line-height: 1.45;
}

.sh-credits {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 16px 48px;
  margin: 30px 0 0;
}

.sh-credits dt,
.sh-roll dt {
  font-family: var(--sh-hand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--red);
}

.sh-credits dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.sh-credits a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.sh-credits a svg {
  width: 10px;
  height: 10px;
}

/* the envelope */
.sh-env-wrap {
  display: grid;
  place-items: end center;
  min-height: 660px;
}

.sh-env {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1.5;
  perspective: 1400px;
  filter: drop-shadow(0 24px 30px rgba(120, 70, 30, 0.22));
}

.sh-env-back,
.sh-env-front,
.sh-env-flap {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.sh-env-back {
  background:
    linear-gradient(var(--paper-2), var(--paper-2)) 10px 10px / calc(100% - 20px) calc(100% - 20px) no-repeat,
    var(--stripes),
    #fff;
}

.sh-env-book {
  position: absolute;
  left: 23%;
  bottom: 12%;
  width: 54%;
  height: auto;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-70%);
}

.sh-env-front {
  z-index: 3;
  clip-path: polygon(0 34%, 50% 66%, 100% 34%, 100% 100%, 0 100%);
  background:
    linear-gradient(var(--paper), var(--paper)) 10px 0 / calc(100% - 20px) calc(100% - 10px) no-repeat,
    var(--stripes),
    #fff;
}

.sh-env-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/shomporko/paper.webp") 0 0 / 300px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  clip-path: inherit;
}

.sh-env-to {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  font-family: var(--sh-hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  transform: rotate(-3deg);
}

/* open, the flap sits behind the book; closed, it covers everything (z-index 4, set by the script) */
.sh-env-flap {
  z-index: 1;
  height: 66%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  background:
    linear-gradient(var(--paper-2), var(--paper-2)) 10px 10px / calc(100% - 20px) 100% no-repeat,
    var(--stripes),
    #fff;
  transform: rotateX(180deg);
}

.sh-env-stamp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 64px;
  height: 76px;
  padding: 6px;
  background: #fff;
  color: var(--red);
  -webkit-mask: radial-gradient(circle at 50% 50%, #0000 3.4px, #000 3.8px) -5px -5px / 10px 10px round, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle at 50% 50%, #0000 3.4px, #000 3.8px) -5px -5px / 10px 10px round, linear-gradient(#000 0 0) content-box;
  padding: 5px;
}

.sh-env-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--sky);
}

.sh-env-stamp .sh-heart {
  position: relative;
  width: 30px;
}

.sh-env-pm {
  position: absolute;
  right: 40px;
  bottom: 26px;
  z-index: 5;
  width: 150px;
}

/* ==========================================================================
   01 THE LETTER · 02 FROM & TO
   ========================================================================== */
.sh-letter-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}

/* a note on lined paper */
.sh-note {
  position: relative;
  margin: 0;
  padding: 34px 36px 28px 64px;
  background:
    linear-gradient(90deg, transparent 44px, rgba(213, 32, 39, 0.4) 44px 46px, transparent 46px),
    repeating-linear-gradient(transparent 0 37px, rgba(51, 123, 192, 0.25) 37px 38px),
    #fffaf2;
  box-shadow: 0 14px 30px rgba(120, 70, 30, 0.14);
  transform: rotate(-1.5deg);
}

.sh-note p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.72;
  color: var(--navy);
}

.sh-note cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sh-hand);
  font-size: 20px;
  font-style: normal;
  color: var(--red);
}

/* perforated stamps */
.sh-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-stamp {
  padding: 6px;
  background: #fff;
  -webkit-mask: radial-gradient(circle at 50% 50%, #0000 3.6px, #000 4px) -6px -6px / 12px 12px round, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle at 50% 50%, #0000 3.6px, #000 4px) -6px -6px / 12px 12px round, linear-gradient(#000 0 0) content-box;
  filter: drop-shadow(0 6px 8px rgba(120, 70, 30, 0.18));
  transition: transform 0.4s var(--ease);
}

.sh-stamp span {
  display: grid;
  place-items: center;
  min-width: 150px;
  min-height: 92px;
  padding: 12px 18px;
  outline: 1.5px dashed rgba(255, 255, 255, 0.7);
  outline-offset: -7px;
  font-family: var(--sh-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.s-0 span { background: var(--blue); }
.s-1 span { background: var(--red); font-family: var(--sh-bn); }
.s-2 span { background: var(--pink); }
.s-3 span { background: var(--air-b); font-family: var(--sh-bn); }

.s-0 { transform: rotate(-4deg); }
.s-1 { transform: rotate(3deg); }
.s-2 { transform: rotate(-2deg); }
.s-3 { transform: rotate(4deg); }

.sh-stamp:hover {
  transform: rotate(0) scale(1.06);
}

/* postcards */
.sh-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.sh-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  padding: 18px;
  background: #fffaf2;
  box-shadow: 0 16px 34px rgba(120, 70, 30, 0.16);
  transition: transform 0.5s var(--ease);
}

.c-sakib { transform: rotate(-1.5deg); }
.c-mehzabeen { transform: rotate(1.5deg); }

.sh-card:hover {
  transform: rotate(0) translateY(-4px);
}

.sh-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: 50% 20%;
}

.sh-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--sh-hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
  transition: color 0.25s ease;
}

.sh-social-link:hover {
  color: var(--red);
}

.sh-social-link svg {
  width: 10px;
  height: 10px;
}

.sh-card-body {
  padding: 6px 6px 6px 0;
  border-left: 1.5px dashed rgba(31, 47, 92, 0.25);
  padding-left: 20px;
}

.sh-card-k {
  margin: 0;
  font-family: var(--sh-hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
}

.sh-card h3 {
  margin: 4px 0 0;
  font-family: var(--sh-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.sh-card h3 span {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
}

.sh-card-body > p:not(.sh-card-k) {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* the timeline, as a row of stamps along a dashed line */
.sh-tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.sh-tl::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 34px;
  border-top: 2px dashed var(--red);
}

.sh-tl li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.sh-tl-y {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);
  font-family: var(--sh-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

.sh-tl li:last-child .sh-tl-y {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red);
}

.sh-tl-t {
  font-family: var(--sh-hand);
  font-size: 24px;
  font-weight: 700;
}

.sh-quote {
  max-width: 760px;
  margin: 64px auto 0;
  font-family: var(--sh-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.sh-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sh-hand);
  font-size: 22px;
  font-style: normal;
  color: var(--red);
}

/* ==========================================================================
   03 WHY A LETTER — the logo with handwritten notes around it
   ========================================================================== */
.sh-anat {
  position: relative;
  width: min(760px, 100%);
  margin: 72px auto 0;
  padding: 40px 0;
}

.sh-anat .sh-hand {
  position: absolute;
  max-width: 220px;
  font-size: 23px;
}

.sh-anat .sh-hand::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30' fill='none' stroke='%231759a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 4c14 0 30 6 40 22'/%3E%3Cpath d='M34 22l8 4 1-9'/%3E%3C/svg%3E") no-repeat;
}

.n-title { left: -230px; top: 30%; }
.n-title::before { right: -50px; top: 6px; }
.n-stamps { left: -150px; bottom: 0; }
.n-stamps::before { right: -50px; top: -16px; transform: scaleY(-1); }
.n-pm { right: -210px; top: 0; }
.n-pm::before { left: -52px; top: 4px; transform: scaleX(-1); }
.n-hearts { right: -200px; bottom: 10%; }
.n-hearts::before { left: -52px; top: -14px; transform: scale(-1, -1); }

/* ==========================================================================
   04 ROUNDS — drafts pinned to a string, like letters drying
   ========================================================================== */
.sh-round {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 64px;
}

.sh-round-tag {
  display: grid;
  gap: 4px;
}

.sh-pm-sm {
  width: 120px;
}

.sh-round-tag p {
  margin: 0;
  font-family: var(--sh-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.sh-round-tag b {
  display: block;
  font-family: var(--sh-hand);
  font-size: 24px;
  color: var(--red);
}

.sh-round-tag span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}

.sh-line {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-items: center;
  padding-top: 6px;
}

.sh-string {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
}

.sh-string path {
  fill: none;
  stroke: var(--kraft);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sh-pin {
  position: relative;
  width: min(150px, 92%);
  margin-top: calc(var(--y) * 20px);
  padding: 6px;
  background: #fff;
  box-shadow: 0 12px 20px rgba(120, 70, 30, 0.18);
  transform-origin: 50% -6px;
  animation: sh-swing 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}

.sh-pin img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes sh-swing {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}

.sh-pin:hover {
  animation-play-state: paused;
  z-index: 2;
}

.sh-peg {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 12px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c49a6c, #e3c193 45%, #b88b5c);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.sh-sent {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 88px;
}

.sh-final {
  width: min(320px, 70%);
  margin: 0;
  animation: none;
  transform: rotate(-2deg);
}

.sh-sent-stamp {
  position: absolute;
  left: calc(50% + 110px);
  top: 46%;
  margin: 0;
  padding: 6px 18px;
  border: 3px solid var(--red);
  border-radius: 8px;
  font-family: var(--sh-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.88;
  transform: rotate(-14deg);
}

/* ==========================================================================
   05 THE ENVELOPE — the full wrap with numbered notes
   ========================================================================== */
.sh-wrapfig {
  margin-top: 56px;
}

.sh-wrapimg {
  position: relative;
  box-shadow: 0 24px 50px rgba(120, 70, 30, 0.2);
}

.sh-wrapimg img {
  display: block;
  width: 100%;
  height: auto;
}

.sh-pinno {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--sh-serif);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 6px 12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.sh-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.sh-legend li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sh-hand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.sh-legend span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--sh-serif);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-2px);
}

/* ==========================================================================
   06 THE BACK COVER — bubbles pop, a heart rides the string
   ========================================================================== */
.sh-call-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  align-items: center;
  gap: 72px;
}

.sh-back {
  position: relative;
  box-shadow: 0 24px 50px rgba(120, 70, 30, 0.2);
}

.sh-back-img {
  display: block;
  width: 100%;
  height: auto;
}

.sh-bub {
  position: absolute;
  height: auto;
  transform-origin: 30% 90%;
}

.b-his {
  transform-origin: 20% 95%;
}

.sh-string-ov {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sh-route {
  fill: none;
  stroke: none;
}

.sh-runner {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 2.5;
  opacity: 0;
}

.sh-call-copy .sh-head > .sh-pm {
  right: -40px;
  top: -110px;
}

.sh-call-copy h2 {
  font-family: var(--sh-bn);
  font-weight: 800;
}

.sh-call-hint {
  margin: 28px 0 0;
  font-size: 26px;
}

/* ==========================================================================
   07 DELIVERED · 08 CAMPAIGN · 09 BEHIND THE LENS
   ========================================================================== */
.sh-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px 260px;
  grid-template-areas:
    "a a b"
    "a a c"
    "d e e";
  gap: 14px;
  margin-top: 56px;
}

.sh-bento figure,
.sh-social figure {
  position: relative;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 14px 30px rgba(120, 70, 30, 0.16);
}

.bk-0 { grid-area: a; }
.bk-1 { grid-area: b; }
.bk-2 { grid-area: c; }
.bk-3 { grid-area: d; }
.bk-4 { grid-area: e; }

.sh-bento img,
.sh-social img {
  transition: transform 0.8s var(--ease);
}

.sh-bento figure:hover img,
.sh-social figure:hover img {
  transform: scale(1.04);
}

.sh-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.sh-poster {
  position: relative;
  padding: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(120, 70, 30, 0.2);
  transition: transform 0.5s var(--ease);
}

.sh-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.p-0 { transform: rotate(-3deg); }
.p-1 { transform: rotate(1.5deg) translateY(18px); }
.p-2 { transform: rotate(-1.5deg); }

.sh-poster:hover {
  transform: rotate(0) translateY(-6px);
}

/* washi tape */
.sh-tape {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 2;
  width: 110px;
  height: 32px;
  background: repeating-linear-gradient(-45deg, rgba(239, 43, 45, 0.55) 0 8px, rgba(255, 255, 255, 0.6) 8px 16px);
  opacity: 0.9;
  transform: translateX(-50%) rotate(-4deg);
}

.p-1 .sh-tape {
  background: repeating-linear-gradient(-45deg, rgba(51, 123, 192, 0.55) 0 8px, rgba(255, 255, 255, 0.6) 8px 16px);
  transform: translateX(-50%) rotate(3deg);
}

.sh-social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "f f f f"
    "k1 k2 k3 u"
    "fr fr g g";
  gap: 14px;
  margin-top: 64px;
}

.so-fb { grid-area: f; aspect-ratio: 2460 / 936; }
.so-k1 { grid-area: k1; aspect-ratio: 1; }
.so-k2 { grid-area: k2; aspect-ratio: 1; }
.so-k3 { grid-area: k3; aspect-ratio: 1; }
.so-ui { grid-area: u; aspect-ratio: 1; }
.so-frame { grid-area: fr; aspect-ratio: 3 / 2; }
.so-fb2 { grid-area: g; }

.sh-social figcaption,
.sh-bento figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  font-family: var(--sh-hand);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.sh-polas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
  margin-top: 56px;
}

.sh-pola {
  padding: 10px 10px 0;
  background: #fff;
  box-shadow: 0 14px 26px rgba(120, 70, 30, 0.18);
  transform: rotate(var(--r));
  transition: transform 0.4s var(--ease);
}

.sh-pola img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sh-pola figcaption {
  padding: 8px 4px 12px;
  font-family: var(--sh-hand);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.sh-pola:hover {
  transform: rotate(0) scale(1.05);
  z-index: 2;
}

.sh-credit {
  margin: 40px 0 0;
  font-family: var(--sh-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
}

/* ==========================================================================
   FINALE — the sign-off
   ========================================================================== */
.sh-finale {
  padding: var(--sh-gap) 0 120px;
}

.sh-sign {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 56px 56px;
  background:
    linear-gradient(var(--paper), var(--paper)) 12px 12px / calc(100% - 24px) calc(100% - 24px) no-repeat,
    var(--stripes),
    #fff;
  text-align: center;
  box-shadow: 0 24px 50px rgba(120, 70, 30, 0.2);
}

.sh-iti {
  margin: 0;
  font-family: var(--sh-bn);
  font-size: clamp(64px, 9vw, 110px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
  text-shadow: 4px 4px 0 rgba(213, 32, 39, 0.7);
}

.sh-fin-t {
  margin: 10px auto 0;
  max-width: 480px;
  font-family: var(--sh-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}

.sh-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.sh-btn svg,
.sh-rk svg {
  width: 11px;
  height: 11px;
}

.sh-btn:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.sh-btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.sh-btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

.sh-rk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--sh-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.sh-fin-pm {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
}

.sh-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
}

.pre-motion .sh-hero-text > *,
.pre-motion .sh-env {
  opacity: 0;
}

/* ==========================================================================
   SMALLER SCREENS
   ========================================================================== */
@media (max-width: 1260px) {
  .sh-head > .sh-pm {
    right: -60px;
    top: -70px;
    width: 130px;
  }

  .n-title { left: -10px; top: -6%; }
  .n-stamps { left: -10px; bottom: -14%; }
  .n-pm { right: -10px; top: -14%; }
  .n-hearts { right: -10px; bottom: -14%; }
  .sh-anat .sh-hand::before { display: none; }
}

@media (max-width: 900px) {
  .sh-page {
    --sh-gap: 96px;
  }

  .sh-hero {
    padding: 36px 0 20px;
  }

  .sh-hero-grid,
  .sh-letter-row,
  .sh-cards,
  .sh-call-grid {
    grid-template-columns: 1fr;
  }

  .sh-hero-grid {
    gap: 24px;
  }

  .sh-env-wrap {
    min-height: 560px;
  }

  .sh-env {
    width: min(360px, 100%);
  }

  .sh-head > .sh-pm {
    right: -6px;
    top: -62px;
    width: 104px;
  }

  .sh-head h2 {
    font-size: clamp(34px, 9.6vw, 48px);
    line-height: 1.14;
  }

  .sh-lead {
    font-size: 16.5px;
  }

  .sh-note {
    padding: 26px 22px 22px 52px;
  }

  .sh-note p {
    font-size: 19px;
  }

  .sh-stamps {
    justify-content: center;
  }

  .sh-stamp span {
    min-width: 128px;
    min-height: 80px;
    font-size: 16px;
  }

  .sh-card {
    grid-template-columns: 1fr;
  }

  .sh-card-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .sh-card-body {
    border-left: 0;
    border-top: 1.5px dashed rgba(31, 47, 92, 0.25);
    padding: 16px 0 4px;
  }

  .sh-tl {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .sh-tl::before {
    display: none;
  }

  .sh-anat {
    margin-top: 56px;
    padding: 64px 0;
  }

  .sh-anat .sh-hand {
    max-width: 46%;
    font-size: 19px;
  }

  .n-title { left: 0; top: 0; }
  .n-pm { right: 0; top: 0; text-align: right; }
  .n-stamps { left: 0; bottom: 0; }
  .n-hearts { right: 0; bottom: 0; text-align: right; }

  .sh-round {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 48px;
  }

  .sh-round-tag {
    grid-template-columns: 96px 1fr;
    align-items: center;
  }

  .sh-pm-sm {
    width: 96px;
  }

  .sh-line {
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    row-gap: 26px;
  }

  .sh-string {
    display: none;
  }

  .sh-pin {
    margin-top: 0;
    width: 92%;
  }

  .sh-sent-stamp {
    left: auto;
    right: 4%;
    top: auto;
    bottom: 6%;
    font-size: 26px;
  }

  .sh-pinno {
    width: 24px;
    height: 24px;
    font-size: 12px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  }

  .sh-legend {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sh-legend li {
    font-size: 21px;
  }

  .sh-call-grid {
    gap: 48px;
  }

  .sh-call-copy {
    order: -1;
  }

  .sh-call-copy .sh-head > .sh-pm {
    right: -6px;
    top: -62px;
  }

  .sh-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 150px 150px;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
    gap: 10px;
    margin-top: 40px;
  }

  .sh-bento figure,
  .sh-social figure {
    border-width: 5px;
  }

  .sh-posters {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }

  .p-1 {
    grid-column: 1 / -1;
    width: 70%;
    justify-self: center;
    order: -1;
    transform: rotate(1.5deg);
  }

  .sh-tape {
    width: 76px;
    height: 24px;
  }

  .sh-social {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "f f"
      "k1 k2"
      "k3 u"
      "fr fr"
      "g g";
    gap: 10px;
    margin-top: 40px;
  }

  .sh-social figcaption {
    font-size: 15px;
  }

  .sh-polas {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .sh-pola figcaption {
    font-size: 20px;
  }

  .sh-sign {
    padding: 48px 24px 40px;
  }

  .sh-fin-pm {
    right: -10px;
    top: -50px;
    width: 110px;
  }
}
