/* ============================================================
   V3 — Ultra-realistic objects
   ============================================================ */

/* ---------- Monogram ---------- */
.hero-monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(176, 137, 60, 0.5);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brown);
  background: radial-gradient(circle at 32% 28%, rgba(255, 244, 214, 0.9), transparent 60%), var(--paper-deep);
  margin-bottom: 18px;
}

/* ---------- Tea stain ---------- */
.tea-stain {
  position: absolute;
  border-radius: 50%;
  border: 9px solid rgba(133, 90, 38, 0.1);
  filter: blur(0.6px);
  pointer-events: none;
  z-index: 0;
}
.tea-stain::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(133, 90, 38, 0.07);
}

/* ---------- Ink blot ---------- */
.ink-blot {
  position: absolute;
  width: 40px;
  color: #2c2115;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Open book ---------- */
.open-book {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card), 0 30px 55px -22px rgba(43, 32, 19, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.open-book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 30px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(43, 32, 19, 0.14) 42%, rgba(43, 32, 19, 0.24) 50%, rgba(43, 32, 19, 0.14) 58%, transparent);
  z-index: 2;
  pointer-events: none;
}
.open-book::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -8px;
  height: 8px;
  background: linear-gradient(180deg, #3a2b18, #1f1609);
  border-radius: 0 0 7px 7px;
  box-shadow: 0 10px 18px -6px rgba(43, 32, 19, 0.5);
}
.ob-page {
  padding: 34px 34px 30px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(90, 72, 42, 0.05) 6px 7px) left / 10px 100% no-repeat,
    repeating-linear-gradient(270deg, transparent 0 6px, rgba(90, 72, 42, 0.05) 6px 7px) right / 10px 100% no-repeat;
}
.ob-cell {
  padding: 20px 8px;
  text-align: center;
  border-bottom: 1px dashed var(--line-soft);
}
.ob-cell:last-child {
  border-bottom: none;
}
.ob-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1;
}
.ob-cell strong sup {
  font-size: 0.5em;
  color: var(--gold);
}
.ob-cell span {
  margin-top: 10px;
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.ob-ribbon {
  position: absolute;
  top: -12px;
  width: 12px;
  height: 58px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(43, 32, 19, 0.35);
  z-index: 3;
}
.ob-ribbon.r1 {
  left: 36%;
  background: linear-gradient(180deg, #96453a, var(--oxblood));
  transform: rotate(3deg);
}
.ob-ribbon.r2 {
  left: 62%;
  height: 46px;
  background: linear-gradient(180deg, #3c5e49, var(--forest));
  transform: rotate(-4deg);
}

/* ---------- Hanging sign ---------- */
.sign-hang {
  position: relative;
  height: 150px;
  margin-top: -14px;
}
.sign-hang .bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, #4a3822 12%, #4a3822 88%, transparent);
  border-radius: 2px;
}
.chain {
  position: absolute;
  top: 0;
  width: 2px;
  height: 52px;
  background: repeating-linear-gradient(180deg, #4a3822 0 6px, transparent 6px 10px);
}
.chain.c1 { left: calc(50% - 195px); }
.chain.c2 { left: calc(50% + 193px); }
.hs-board {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 92%);
  background: linear-gradient(160deg, #5d472c, #382a17 70%);
  color: var(--gold-pale);
  text-align: center;
  padding: 17px 22px;
  border-radius: 4px;
  box-shadow: 0 18px 28px -12px rgba(43, 32, 19, 0.65), inset 0 0 0 2px rgba(211, 169, 79, 0.35);
  font-family: "IM Fell English SC", serif;
  letter-spacing: 0.13em;
  font-size: 0.98rem;
  animation: sway 6.5s ease-in-out infinite;
}
.hs-board::before,
.hs-board::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d3a94f, #4a3822);
}
.hs-board::before { left: 24px; }
.hs-board::after { right: 24px; }
@keyframes sway {
  0%, 100% { transform: translateX(-50%) rotate(-0.6deg); }
  50% { transform: translateX(-50%) rotate(0.6deg); }
}

/* ---------- Brass schedule plaque + pocket watch ---------- */
.schedule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 42px;
  background: linear-gradient(135deg, #e8d9ae, #c9ad74 32%, #b28f52 62%, #d8c28c);
  border: 1px solid #8a6a34;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 246, 214, 0.55),
    inset 0 0 0 4px rgba(122, 92, 40, 0.55),
    var(--shadow-card);
  color: #4a3822;
}
.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3cf, #8a6a34);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.45);
}
.screw.tl { top: 9px; left: 9px; }
.screw.tr { top: 9px; right: 9px; }
.screw.bl { bottom: 9px; left: 9px; }
.screw.br { bottom: 9px; right: 9px; }
.sp-text .small-caps { color: #6d5124; }
.sp-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #3a2b18;
  margin: 6px 0 4px;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.65);
}
.sp-text .sp-note {
  font-size: 0.95rem;
  color: #5d4526;
}
.sp-key {
  margin-left: auto;
  color: #6d5124;
  flex: none;
}
.sp-key svg {
  width: 52px;
  height: 52px;
}

.pw {
  position: relative;
  width: 104px;
  height: 104px;
  flex: none;
  margin-top: 10px;
}
.pw-bow {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border: 3px solid #93722f;
  border-radius: 50%;
}
.pw-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 11px;
  background: linear-gradient(#e2c886, #93722f);
  border-radius: 3px;
}
.pw-case {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2e4b8, #c9ad74);
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 214, 0.7),
    inset 0 0 0 6px rgba(122, 92, 40, 0.55),
    0 16px 26px -12px rgba(43, 32, 19, 0.55);
}
.pw-face {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #fbf4de, #efe2bd);
  box-shadow: inset 0 2px 6px rgba(43, 32, 19, 0.25);
}
.pw-num {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.58rem;
  color: #6d5124;
}
.pw-num.xii { top: 5px; left: 50%; transform: translateX(-50%); }
.pw-num.iii { right: 7px; top: 50%; transform: translateY(-50%); }
.pw-num.vi { bottom: 5px; left: 50%; transform: translateX(-50%); }
.pw-num.ix { left: 7px; top: 50%; transform: translateY(-50%); }
.pw-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  background: #4a3822;
  border-radius: 2px;
}
.pw-hand.hour {
  width: 3.5px;
  height: 22px;
  transform: translateX(-50%) rotate(60deg);
}
.pw-hand.min {
  width: 2px;
  height: 30px;
  transform: translateX(-50%);
}
.pw-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Photo corners ---------- */
.pc-photo { position: relative; }
.pcorner {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #e9dbb6, #c9b47f);
  z-index: 4;
  box-shadow: 0 1px 2px rgba(43, 32, 19, 0.35);
}
.pcorner.tl { top: -3px; left: -3px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pcorner.tr { top: -3px; right: -3px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pcorner.bl { bottom: -3px; left: -3px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pcorner.br { bottom: -3px; right: -3px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }

/* ---------- Library card pocket ---------- */
.lib-card {
  max-width: 520px;
  margin: 64px auto 0;
  transform: rotate(-1deg);
}
.lc-card {
  position: relative;
  z-index: 1;
  margin: 0 30px -30px;
  background: #fbf6e8;
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 16px 18px 40px;
  box-shadow: 0 -8px 16px rgba(43, 32, 19, 0.12);
}
.lc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: #6d5124;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #6d5124;
  padding-bottom: 7px;
  margin-bottom: 4px;
}
.lc-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--font-cormorant);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 2px;
}
.lc-row .lc-date {
  font-family: "Special Elite", monospace;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--oxblood);
  opacity: 0.85;
}
.lc-row .lc-back {
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}
.lc-pocket {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #e9dbb6, #d2bc8b);
  border: 1px solid #a98c54;
  border-radius: 0 0 8px 8px;
  padding: 0 18px 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 248, 222, 0.5), var(--shadow-card);
}
.lc-pocket::before {
  content: "";
  display: block;
  height: 16px;
  background: linear-gradient(180deg, rgba(43, 32, 19, 0.22), transparent);
  border-radius: 0 0 4px 4px;
}
.lc-pocket p {
  margin: 8px 4px 0;
  font-family: "IM Fell English SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: #6d5124;
  text-align: center;
}

/* ---------- Typewriter ---------- */
.typewriter {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-top: 168px;
}
.tw-paper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-0.6deg);
  width: 80%;
  background: #f7f0d9;
  border: 1px solid #d8c894;
  padding: 26px 32px 30px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.tw-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, #cbb87e 0 3px, transparent 3px 10px);
  opacity: 0.45;
}
.tw-paper p {
  font-family: "Special Elite", monospace;
  color: #3a2b18;
  font-size: 0.96rem;
  line-height: 1.85;
}
.tw-paper .tw-sign {
  margin-top: 14px;
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #6d5124;
}
.tw-body {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(160deg, #3d3129, #241c16 60%, #17110c);
  border-radius: 16px 16px 10px 10px;
  padding: 22px 28px 26px;
  box-shadow: 0 26px 44px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 235, 190, 0.14);
}
.tw-roller {
  position: relative;
  height: 18px;
  background: linear-gradient(180deg, #5a4938, #332720);
  border-radius: 9px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}
.tw-roller::before,
.tw-roller::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a7355, #4a3822);
}
.tw-roller::before { left: -18px; }
.tw-roller::after { right: -18px; }
.tw-keys {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  justify-items: center;
}
.tw-key {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #efe4c4, #b89f6e 70%, #8f7748);
  color: #3a2b18;
  font-family: "Special Elite", monospace;
  font-size: 0.52rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.55), inset 0 -2px 2px rgba(0, 0, 0, 0.28);
}
.tw-space {
  margin: 10px auto 0;
  height: 13px;
  width: 46%;
  background: linear-gradient(180deg, #8f7748, #5a4938);
  border-radius: 7px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
}

/* ---------- Portrait nail & string, nameplate ---------- */
.portrait {
  position: relative;
  padding-top: 30px;
}
.portrait::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8f7748, #4a3822);
  transform: translateX(-50%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}
.portrait::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 148px;
  height: 36px;
  transform: translateX(-50%);
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.7px), rgba(90, 72, 42, 0.7) 50%, transparent calc(50% + 0.7px)),
    linear-gradient(to bottom left, transparent calc(50% - 0.7px), rgba(90, 72, 42, 0.7) 50%, transparent calc(50% + 0.7px));
}
.nameplate {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #e8d9ae, #c9ad74 50%, #b28f52);
  border: 1px solid #8a6a34;
  border-radius: 2px;
  color: #4a3822;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 214, 0.5);
}

/* ---------- Paperclip ---------- */
.paperclip {
  position: absolute;
  top: -13px;
  left: 28px;
  width: 17px;
  height: 46px;
  border: 2.5px solid #9a9a94;
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
  transform: rotate(-5deg);
}
.paperclip::before {
  content: "";
  position: absolute;
  inset: 4px 3px auto;
  height: 27px;
  border: 2.5px solid #b8b8b1;
  border-radius: 7px;
  border-bottom: none;
}

/* ---------- Tape ---------- */
.clipping { position: relative; }
.tape {
  position: absolute;
  width: 112px;
  height: 30px;
  background: rgba(233, 219, 182, 0.68);
  box-shadow: 0 2px 6px rgba(43, 32, 19, 0.16);
  border-left: 1px dashed rgba(90, 72, 42, 0.25);
  border-right: 1px dashed rgba(90, 72, 42, 0.25);
  z-index: 3;
}
.tape.tl { top: -15px; left: 44px; transform: rotate(-4deg); }
.tape.tr { top: -15px; right: 44px; transform: rotate(3deg); }

/* ---------- Rosette honors ---------- */
.honors {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 74px;
}
.honor {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rosette {
  position: relative;
  width: 74px;
  height: 74px;
  flex: none;
}
.rosette .disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--oxblood) 0 18deg, #934232 18deg 36deg);
  box-shadow: 0 8px 14px -6px rgba(43, 32, 19, 0.55);
}
.rosette .core {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8b64f, #a97f2c);
  display: grid;
  place-items: center;
  color: #4a3822;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 0 0 2px rgba(255, 240, 200, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}
.rosette .rib {
  position: absolute;
  top: 60px;
  width: 15px;
  height: 42px;
  background: linear-gradient(180deg, var(--oxblood), #571f18);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: -1;
}
.rosette .rib.l { left: 15px; transform: rotate(9deg); }
.rosette .rib.r { right: 15px; transform: rotate(-9deg); }
.honor-txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}
.honor-txt span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ---------- Telegram ---------- */
.telegram {
  max-width: 660px;
  margin: 0 auto;
  background: #f3e9c8;
  border: 1px solid #b49b64;
  box-shadow: var(--shadow-card);
  padding: 24px 28px 20px;
  position: relative;
  transform: rotate(0.6deg);
}
.tg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #4a3822;
  padding-bottom: 11px;
  gap: 12px;
  flex-wrap: wrap;
}
.tg-logo {
  font-family: "Special Elite", monospace;
  font-size: 1.08rem;
  color: #4a3822;
  letter-spacing: 0.06em;
}
.tg-words { display: flex; gap: 9px; }
.tg-word {
  border: 1.5px solid #713027;
  color: #713027;
  font-family: "Special Elite", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  padding: 3px 9px;
  transform: rotate(-2deg);
}
.tg-word:last-child { transform: rotate(1.5deg); }
.tg-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "Special Elite", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #6d5124;
  margin: 11px 0 15px;
  text-transform: uppercase;
}
.tg-body {
  font-family: "Special Elite", monospace;
  font-size: 0.94rem;
  line-height: 2.05;
  color: #3a2b18;
  word-spacing: 0.3em;
}
.tg-foot {
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px dashed #b49b64;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Special Elite", monospace;
  font-size: 0.6rem;
  color: #6d5124;
  letter-spacing: 0.16em;
}

/* ---------- Footer postmark ---------- */
.foot-postmark {
  position: absolute;
  top: 10px;
  right: 6px;
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(176, 137, 60, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
  color: rgba(211, 169, 79, 0.75);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
  pointer-events: none;
}
.foot-postmark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(176, 137, 60, 0.35);
  border-radius: 50%;
}

/* ---------- V3 responsive ---------- */
@media (max-width: 1020px) {
  .schedule { flex-direction: column; text-align: center; }
  .sp-key { margin: 0 auto; }
  .honors { gap: 38px; }
}
@media (max-width: 760px) {
  .chain.c1 { left: calc(50% - 150px); }
  .chain.c2 { left: calc(50% + 148px); }
  .open-book { grid-template-columns: 1fr; }
  .open-book::before { display: none; }
  .ob-page:first-child { border-bottom: 1px dashed var(--line-soft); }
  .typewriter { padding-top: 150px; }
  .tw-paper { width: 92%; padding: 20px 20px 24px; }
  .tw-keys { grid-template-columns: repeat(7, 1fr); }
  .tw-key:nth-child(n+15) { display: none; }
  .honor { flex-direction: column; text-align: center; }
  .foot-postmark { display: none; }
}
