  :root {
      --paper: #f6f1e6;
      --paper-2: #efe7d6;
      --ink: #2a2521;
      --ink-soft: #5a5049;
      --wine: #7a3540;
      --wine-deep: #5c2530;
      --sage: #838f72;
      --gold: #a6813c;
      --line: rgba(42, 37, 33, 0.18);
      --shadow: 0 10px 30px rgba(42, 37, 33, 0.12);
  }

  * {
      box-sizing: border-box;
  }

  html {
      scroll-behavior: auto;
  }

  body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: "Noto Sans Armenian", "DejaVu Sans", "Sylfaen", sans-serif;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
  }

  @media (prefers-reduced-motion: reduce) {
      * {
          animation-duration: 0.01ms !important;
          transition-duration: 0.01ms !important;
      }
  }

  /* ---------- texture ---------- */
  .grain {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 2;
      opacity: 0.05;
      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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- envelope intro ---------- */
  #envelope {
      position: fixed;
      inset: 0;
      z-index: 50;
      background: linear-gradient(155deg, var(--paper) 0%, var(--paper-2) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 1.1s cubic-bezier(.65, 0, .35, 1), opacity 1s ease .2s;
  }

  #envelope::before,
  #envelope::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
          linear-gradient(135deg, transparent 49.4%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.6%),
          linear-gradient(-135deg, transparent 49.4%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.6%);
  }

  .seal {
      position: relative;
      z-index: 2;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle at 32% 28%, #b0895a, var(--gold) 40%, #6f5527 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 18px rgba(42, 37, 33, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.25);
      cursor: pointer;
      user-select: none;
      animation: breathe 3.2s ease-in-out infinite;
      border: 2px solid rgba(42, 37, 33, 0.15);
  }

  .seal span {
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      color: #f6ead0;
      letter-spacing: 2px;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  }

  .seal-hint {
      position: absolute;
      bottom: 14%;
      left: 0;
      right: 0;
      text-align: center;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--ink-soft);
  }

  @keyframes breathe {

      0%,
      100% {
          transform: scale(1);
      }

      50% {
          transform: scale(1.045);
      }
  }

  #envelope.opening {
      transform: translateY(-100%);
      opacity: 0;
  }

  #envelope.hidden {
      display: none;
  }

  /* ---------- shared ---------- */
  section {
      position: relative;
      padding: 88px 24px;
      max-width: 760px;
      margin: 0 auto;
  }

  .eyebrow {
      font-family: 'Cinzel', serif;
      font-size: 0.7rem;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--wine);
      text-align: center;
      margin-bottom: 14px;
  }

  h1,
  h2 {
      font-family: 'Tangerine', cursive;
      font-weight: 700;
      margin: 0;
      line-height: 0.9;
      color: var(--ink);
  }

  .script-and {
      font-family: 'Tangerine', cursive;
      color: var(--wine);
  }

  .divider {
      width: 44px;
      height: 1px;
      background: var(--gold);
      margin: 26px auto;
      opacity: 0.8;
  }

  .btn {
      display: inline-block;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--paper);
      background: var(--wine);
      padding: 15px 34px;
      border-radius: 2px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background 25s ease, transform .25s ease;
  }

  .btn:hover {
      background: var(--wine-deep);
      transform: translateY(-1px);
  }

  .btn:focus-visible {
      outline: 3px solid var(--gold);
      outline-offset: 3px;
  }

  .photo-slot {
      width: 100%;
      aspect-ratio: 4/5;
      border-radius: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
      font-family: 'Cinzel', serif;
      font-size: 0.68rem;
      letter-spacing: 1.5px;
      color: var(--ink-soft);
      text-transform: uppercase;
  }

  /* reveal-on-scroll */
  /* ===========================
        JOURNEY
=========================== */

/* =====================
   TIMELINE
===================== */


.timeline{

position:relative;

width:100%;

max-width:420px;

height:1100px;

margin:0 auto;

padding:0;

overflow:hidden;

}



#timelineCanvas{

position:absolute;

top:0;
left:0;

width:100%;

height:100%;

}



#marker{

position:absolute;

top:0;
left:0;

width:36px;

height:58px;

z-index:5;

will-change:transform;

}



.pin{

width:36px;

height:36px;

background:#444;

border-radius:50% 50% 50% 0;

transform:rotate(-45deg);

}



.pin span{

position:absolute;

width:10px;

height:10px;

background:white;

border-radius:50%;

left:13px;

top:13px;

}



.event{

position:absolute;

width:45%;

text-align:center;

transform:translateY(-70%);

}



.event.left{

left:0;

}


.event.right{

right:0;

}

  /* ---------- hero ---------- */
  #hero {
      padding-top: 64px;
      text-align: center;
  }

  #hero .photo-slot {
      margin-bottom: 34px;
  }

  #hero h1 {
      font-size: 4.6rem;
  }

  #hero .names {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
  }

  #hero .date {
      margin-top: -30px;
      font-family: 'Cinzel', serif;
      font-size: 1.9rem;
      letter-spacing: 5px;
      color: var(--ink-soft);
  }

  /* ---------- save the date ---------- */
  #save-date {
      text-align: center;
      position: relative;
      top: -120px;
  }

  #save-date h2 {
      font-size: 3rem;
      color: var(--wine);
      margin-bottom: 6px;
  }

  #save-date p {
      font-size: 1.15rem;
      color: var(--ink-soft);
      line-height: 1.6;
      max-width: 400px;
      margin: 0 auto 30px;
  }

  .calendar {
      max-width: 320px;
      margin: 0 auto;
      border: 1px solid var(--line);
      padding: 22px 18px;
      background: var(--paper-2);
  }

  .calendar .month {
      font-family: 'Cinzel', serif;
      letter-spacing: 2px;
      font-size: 0.95rem;
      margin-bottom: 16px;
      text-transform: uppercase;
  }

  .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 8px 4px;
      font-size: 0.85rem;
  }

  .cal-grid .dow {
      font-family: 'Cinzel', serif;
      font-size: 0.6rem;
      color: var(--ink-soft);
      letter-spacing: 1px;
  }

  .cal-grid .day {
      padding: 6px 0;
      border-radius: 50%;
  }

  .cal-grid .day.marked {
      background: var(--wine);
      color: var(--paper);
      font-weight: 600;
  }

  /* ---------- timeline ---------- */


  /* ---------- rsvp ---------- */
  #rsvp {
      text-align: center;
  }

  #rsvp h2 {
      font-size: 2.5rem;
      color: var(--wine);
      margin-bottom: 10px;
  }

  #rsvp p.sub {
      color: var(--ink-soft);
      margin-bottom: 36px;
      font-size: 1.1rem;
  }

  form {
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 20px;
  }

  label {
      font-family: 'Cinzel', serif;
      font-size: 0.68rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--ink-soft);
      display: block;
      margin-bottom: 8px;
  }

  input[type=text],
  select,
  textarea {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--line);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: var(--ink);
      padding: 8px 2px;
  }

  input:focus,
  select:focus,
  textarea:focus {
      outline: none;
      border-bottom-color: var(--wine);
  }

  .radio-row {
      display: flex;
      gap: 26px;
  }

  .radio-row label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      text-transform: none;
      letter-spacing: 0;
      color: var(--ink);
  }

  .radio-row input {
      accent-color: var(--wine);
      width: 16px;
      height: 16px;
  }

  form .btn {
      align-self: center;
      margin-top: 10px;
  }

  #rsvp-note {
      text-align: center;
      margin-top: 18px;
      font-size: 0.95rem;
      color: var(--sage);
      display: none;
  }

  #rsvp-note.show {
      display: block;
  }

  /* ---------- gallery ---------- */
  #gallery {
      overflow: hidden;
      border-radius: 12px;
  }

  #gallery h2 {
      text-align: center;
      font-size: 3rem;
      margin-bottom: 36px;
  }

  .gallery-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
  }

  .gallery-grid .photo-slot:first-child {
      grid-column: 1/3;
      aspect-ratio: 16/10;
  }

  /* ---------- footer / countdown ---------- */
  footer {
      background: var(--ink);
      color: var(--paper);
      text-align: center;
      padding: 70px 24px 50px;
      position: relative;
  }

  footer .script-and {
      color: var(--gold);
  }

  footer h2 {
      font-size: 2.6rem;
      color: var(--paper);
      margin-bottom: 26px;
  }

  .countdown {
      display: flex;
      justify-content: center;
      gap: 22px;
      margin-bottom: 34px;
      flex-wrap: wrap;
  }

  .countdown div {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 56px;
  }

  .countdown .num {
      font-family: 'Cinzel', serif;
      font-size: 1.9rem;
      color: var(--gold);
  }

  .countdown .lbl {
      font-size: 0.62rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: rgba(246, 241, 230, 0.55);
      margin-top: 4px;
  }

  footer .contact {
      font-size: 0.95rem;
      color: rgba(246, 241, 230, 0.7);
      line-height: 1.9;
  }

  footer .contact a {
      color: var(--paper);
  }

  .IMG_photo_hero {

      width: 100%;
      height: 100%;

      object-fit: cover;

      display: block;

  }

  .Text {
      font-size: 22px;
      text-align: center;
      align-items: center;
      font-family: cursive;
      position: absolute;
      top: -120px;
  }
  
  .button {
    background: white;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    position: relative;
    top: 20px;
  }

  .time {
    font-size: 70px;
    font-weight: 700;
    color: rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }

  strong {
    font-size: 14px;
    color: #333;
    padding: 30px;
  }

.reveal {
    position: relative;
    bottom: 30px;
}

.block {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.3s ease-out, transform 1s ease-out;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-popup {
  inset: 0;
  align-items: center;
  justify-content: center;
}

.custom-popup .popup-window {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
  text-align: center;
  align-items: center;
}