* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* Lock the page to the viewport: scroll/wheel/touch should only unroll the
     paper, never move the whole page (which caused the jerk/rubber-band at the
     top & bottom edges). */
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  /* Deep raspberry-red with a faint checker — same look as Awebistebg.svg,
     rebuilt in CSS because the SVG's multiply blend doesn't composite
     reliably when used as a background image. */
  background-color: #d02149;
  background-image:
    linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(0, 0, 0, 0.05) 75%
    ),
    linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(0, 0, 0, 0.05) 75%
    );
  background-position:
    0 0,
    12px 12px;
  background-size: 24px 24px;
  background-attachment: fixed;
  font-family:
    "Big Shoulders Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/*  Layout                                                            */
/* ------------------------------------------------------------------ */
/*  Default = MOBILE (second mockup): title + banner top-left, roll in  */
/*  the middle, logo to the right, contact block right-aligned bottom.  */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "websit"
    "banner"
    "roll"
    "logo"
    "meanwhile"
    "chat"
    "email"
    "phone";
  justify-items: start;
  align-content: center;
  row-gap: clamp(1px, 0.4vh, 5px);
  padding: clamp(14px, 2.6vh, 30px) clamp(8px, 2.4vw, 18px);
}

.el {
  display: block;
}
.el img {
  display: block;
  width: 100%;
  height: auto;
}
img.el {
  height: auto;
}

.roll {
  grid-area: roll;
}
.websit {
  grid-area: websit;
}
.banner {
  grid-area: banner;
}
.meanwhile {
  grid-area: meanwhile;
}
.logo {
  grid-area: logo;
}
.chat {
  grid-area: chat;
}
.email {
  grid-area: email;
}
.phone {
  grid-area: phone;
}

/* mobile sizes & alignment (relative to the single column).
   The roll is sized by viewport height so the whole poster fits one screen. */
.websit {
  justify-self: start;
  width: 56%;
  margin-left: 11%;
}
.banner {
  justify-self: start;
  width: 48%;
  margin: 1.8vh 0 0 31%;
}
.roll {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  height: 26vh;
  min-height: 200px;
  margin: 0.9vh 0 0;
}
.logo {
  justify-self: end;
  width: 13%;
  max-width: 120px;
  margin: 0.4vh 14% 0 0;
}
.meanwhile {
  justify-self: end;
  width: 44%;
  margin: 1.5vh 13% 0 0;
}
.chat {
  justify-self: end;
  width: 43%;
  margin: 1vh 13% 0 0;
}
.email {
  justify-self: end;
  width: 45%;
  margin: -0.4vh 13% 0 0;
}
.phone {
  justify-self: end;
  width: 40%;
  margin: -0.6vh 13% 0 0;
}

/* the interactive roll lives on a transparent, full-viewport canvas pinned
   OVER the poster content, so the unrolled paper flows down the whole page and
   renders on top of the images below it. It's pointer-events:none so clicks
   still reach the links underneath; drag input is handled on window in JS. */
.roll {
  position: relative;
}
#myCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 2; /* above the poster content, so the paper covers the images */
  pointer-events: none; /* clicks pass through to the links below */
}
/* poster content sits below the paper and is transparent to pointer events
   so a drag anywhere unrolls the roll (handled on window in JS) */
.stage {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
/* …except the contact links and logo, which stay clickable (the canvas above
   is pointer-events:none, so taps reach them even where the paper covers) */
.email,
.phone,
.logo {
  pointer-events: auto;
}

/* clickable contact lines + logo */
.email,
.phone,
.logo {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.email:hover,
.phone:hover,
.logo:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/*  DESKTOP (first mockup): roll on the left, text stack on the right.  */
/*  Text is left-aligned at a common edge, the banner is indented, and  */
/*  the logo sits upper-right in the gap above the contact block.       */
/* ------------------------------------------------------------------ */

@media (min-width: 820px) {
  .stage {
    position: relative;
    grid-template-columns: 1fr 1.06fr;
    grid-template-areas:
      "roll websit"
      "roll banner"
      "roll meanwhile"
      "roll chat"
      "roll email"
      "roll phone";
    align-content: center;
    justify-items: start;
    column-gap: clamp(20px, 3vw, 64px);
    row-gap: clamp(4px, 1vh, 12px);
    padding: clamp(30px, 4.5vw, 70px);
    max-width: 1640px;
    margin: 0 auto;
  }

  .roll {
    grid-area: roll;
    align-self: stretch;
    justify-self: center;
    width: 100%;
    /* Let the roll fill its grid column rather than pinning it to a fixed
       width: the column already tracks the viewport, so a fixed cap made the
       roll render at a near-constant pixel size — fine on a small laptop, but
       shrinking to a small fraction of the screen on larger/hi-res laptops.
       The high cap just guards against absurd sizes on ultra-wide monitors. */
    max-width: 900px;
    height: auto; /* fill the column height via stretch */
    min-height: 62vh;
    margin: 0;
  }

  /* widths relative to the right column */
  .websit {
    justify-self: start;
    width: 100%;
    max-width: 800px;
    margin: 0;
  }
  .banner {
    justify-self: start;
    width: 64%;
    min-width: 340px;
    margin: clamp(8px, 1.6vh, 18px) 0 0 9%;
  } /* indented right (nudged a little left) */
  .meanwhile {
    justify-self: start;
    width: 56%;
    min-width: 300px;
    margin: clamp(16px, 3.2vh, 40px) 0 clamp(20px, 3.6vh, 46px) 5%;
  } /* gap below for the contact block; nudged a bit right */
  .chat {
    justify-self: start;
    width: 44%;
    min-width: 250px;
    margin: 0 0 0 -1%;
  } /* nudged a little left */
  .email {
    justify-self: start;
    width: 55%;
    min-width: 320px;
    margin: clamp(-6px, -0.5vh, -2px) 0 0 -1%;
  }
  .phone {
    justify-self: start;
    width: 43%;
    min-width: 230px;
    margin: clamp(-6px, -0.5vh, -2px) 0 0 -1%;
  }

  /* logo floats out of grid flow, upper-right of the contact block */
  .logo {
    position: absolute;
    right: clamp(40px, 7vw, 120px);
    top: 56%;
    width: clamp(84px, 8vw, 130px);
    max-width: none;
    margin: 0;
  }
}
