/* Contact: a lit paper ticket on a dark stage. Scoped to the homepage. */
.contact {
  --contact-paper: #e9e6dd;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px var(--m) 54px;
  background: #080808;
  color: #f0eee8;
  scroll-margin-top: 48px;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 48%, #24231f80, transparent 48%),
    radial-gradient(ellipse at 85% 0%, #d6d0bb0d, transparent 40%);
  pointer-events: none;
}
.contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.contact-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d2e485;
  box-shadow: 0 0 12px #d2e48540;
}
.contact h2 {
  margin: 38px 0 0;
  font-size: clamp(54px, 7.7vw, 112px);
  line-height: .96;
  font-weight: 400;
  letter-spacing: -.06em;
}
.contact-intro {
  width: 230px;
  margin: 56px 3vw 0 0;
  color: #999994;
  font-size: 16px;
  line-height: 1.55;
}
.contact-intro span { color: #eeece6; }
.coupon-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 540px;
  perspective: 1050px;
  perspective-origin: 50% 33%;
  isolation: isolate;
}
.coupon-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(1060px, 130%);
  height: 550px;
  left: 50%;
  top: 52%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    #c3bca22b 0%, #817d6824 26%, #49473c14 49%, transparent 72%);
  transform: translate(-50%, -38%) rotateX(58deg);
  pointer-events: none;
}
.coupon-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(860px, 112%);
  height: 550px;
  left: 52%;
  top: 4%;
  background: conic-gradient(from 150deg at 66% 0,
    transparent 0deg, #e0d6b708 13deg, #fff8de0d 28deg, transparent 49deg);
  filter: blur(28px);
  transform: translateX(-50%) rotate(-13deg);
  pointer-events: none;
}
.coupon-shadow {
  position: absolute;
  z-index: -1;
  top: calc(50% + 125px);
  left: 50%;
  width: min(630px, 80%);
  height: 135px;
  background: #000;
  border-radius: 22px;
  filter: blur(19px);
  transform: translateX(calc(-43% + var(--shadow-x, 0px))) rotateX(63deg) rotateZ(-13deg);
  opacity: .85;
  animation: coupon-ground-shadow 7s ease-in-out infinite;
  pointer-events: none;
}
.coupon-shadow::after {
  content: "";
  position: absolute;
  inset: -24px -30px;
  border-radius: 50%;
  background: #0008;
  filter: blur(20px);
}

.coupon-float {
  width: min(680px, 78vw);
  position: relative;
  transform-style: preserve-3d;
  animation: coupon-float 7s ease-in-out infinite;
  pointer-events: none;
}
/* Warm backlight follows the floating paper; the narrow halo catches its edge. */
.coupon-float::before {
  content: none;
}
/* Keep the light confined to the upper-right paper edge. */
.coupon::before {
  content: none;
}
.coupon__corner-light {
  position: absolute;
  z-index: 4;
  top: -2px;
  right: -2px;
  width: 80px;
  height: 64px;
  transform: translateZ(2px);
  pointer-events: none;
}
.coupon__corner-light svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.coupon__glint-bloom {
  opacity: .5;
  filter: blur(2.5px);
}
.coupon {
  --ticket-x: 20deg;
  --ticket-y: -19deg;
  --light-x: 28%;
  --light-y: 12%;
  position: relative;
  width: 100%;
  aspect-ratio: 2.04;
  transform-style: preserve-3d;
  transform: rotateX(var(--ticket-x)) rotateY(var(--ticket-y)) rotateZ(-10deg);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.coupon-stage.is-scratching .coupon-float,
.coupon-stage.is-scratching .coupon-shadow { animation-play-state: paused; }
.coupon-stage.is-scratching .coupon { transition: none; }
.coupon__back,
.coupon__edge,
.coupon__face {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  -webkit-mask:
    radial-gradient(circle 13px at 78% 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at 78% 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 13px at 78% 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at 78% 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.coupon__back {
  background: #a29b88;
  transform: translateZ(-1.3px);
  box-shadow: 0 .6px 0 #e5dfcb, 0 14px 22px #0009;
}
.coupon__edge {
  background: linear-gradient(100deg, #fff9df, #b4ab93 40%, #eee8d4 73%, #8a816c);
  transform: translate3d(0, .8px, -.6px);
}
.coupon__face {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 78% 22%;
  background-color: #e7e1d0;
  background-image:
    linear-gradient(106deg, transparent 42%, #75674d0b 48.8%, #fffdf21c 49.6%, transparent 56%),
    radial-gradient(ellipse at 13% 2%, #fffdf4 0%, #f0eadc 38%, #ddd6c3 76%, #c9c0aa 100%);
  color: #20211b;
  box-shadow:
    inset 0 1px 0 #fff9e9,
    inset .8px 0 0 #fffae5b3,
    inset 0 -1px 0 #6d624b66,
    inset -1px 0 0 #6b614c40;
}
.coupon__face::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74 .34' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23867a60' opacity='.3' d='m12 14 6-1m38 18 8 1m52-14 9-1M28 73l9 1m64-9 5 2m49 22 8-1M17 126l8-1m53 18 7 1m49-17 8 1'/%3E%3Cpath fill='%23000' filter='url(%23p)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .25;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.coupon__face::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    radial-gradient(ellipse at var(--light-x) var(--light-y), #fffde566, transparent 72%),
    linear-gradient(108deg, #fff9dd22 0%, transparent 34%, transparent 62%, #30251624 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.coupon__main {
  min-width: 0;
  padding: 26px 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.coupon__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.coupon__logo { width: 65px; height: 25px; filter: brightness(0); }
.coupon__edition {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
  letter-spacing: .04em;
}
.coupon__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 55px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .95;
}
.coupon__title span { display: block; }
.coupon__details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 10px;
}
.scratch {
  position: relative;
  width: 100%;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #d4df9e;
  box-shadow: inset 0 0 0 1px #1e27131a;
}
.scratch__email {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 18px;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -.035em;
  text-decoration: none;
}
.scratch__email span { font-size: 25px; font-weight: 400; }
.scratch__email:hover { background: #c7d78b; }
.scratch__email:focus-visible { outline: 2px solid #171815; outline-offset: -4px; }
.scratch canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23ddd7c8' stroke='%234e4d47' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%23908c7e'/%3E%3C/svg%3E") 16 16, crosshair;
  transition: opacity .55s ease, visibility .55s;
}
.scratch.is-ready canvas { display: block; }
.scratch[data-revealed] canvas { opacity: 0; visibility: hidden; pointer-events: none; }
.scratch__corner { position: absolute; width: 0; height: 0; pointer-events: none; }
.scratch__corner--a { left: 0; top: 0; }
.scratch__corner--b { right: 0; top: 0; }
.scratch__corner--c { right: 0; bottom: 0; }
.scratch__corner--d { left: 0; bottom: 0; }
.coupon__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 29px 12px 24px;
  border-left: 1px dashed #5f605e66;
  background: linear-gradient(90deg, #68553b12, transparent 12%, #fff9e10c 65%, #332a1b0c);
}
.coupon__stamp {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid #44473d;
  border-radius: 50%;
  transform: rotate(13deg);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
  letter-spacing: -.02em;
}
.coupon__serial {
  writing-mode: vertical-rl;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .12em;
}
.coupon__barcode {
  width: 84%;
  height: 38px;
  background: repeating-linear-gradient(90deg,
    #171815 0 1px, transparent 1px 3px, #171815 3px 6px,
    transparent 6px 8px, #171815 8px 9px, transparent 9px 13px,
    #171815 13px 15px, transparent 15px 16px, #171815 16px 19px, transparent 19px 22px);
}
.contact-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: -7px 0 26px;
  text-align: center;
  position: relative;
}
.contact-instructions p { margin: 0; color: #dedbd3; font-size: 14px; }
.contact-instructions p span { color: #7e7d77; }
.contact-reveal {
  display: none;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid #51514a;
  border-radius: 0;
  background: none;
  color: #a09f97;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.contact.is-interactive .contact-reveal { display: inline-block; }
.contact-reveal:hover { color: #fff; }
.contact.is-interactive .contact-reveal:disabled { display: none; }
.contact-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  color: #85857f;
  font-size: 11px;
}
.contact-bottom p { margin: 0; }
.contact-bottom a { text-decoration: none; color: #d8d7cf; border-bottom: 1px solid #5f6058; }
#about.about-footer {
  margin: 0;
  padding: 62px var(--m) 24px;
  background: #080808;
  color: #eceae3;
  border-top: 1px solid #292925;
  scroll-margin-top: 56px;
}
.about-footer h2 {
  margin: 0 0 42px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #92928c;
}
.about-footer .about-cols { grid-template-columns: 1fr 1fr; gap: 10vw; }
.about-footer .about-lead { max-width: 590px; font-size: clamp(22px, 2.3vw, 34px); }
.about-footer .meta { font-size: 13px; gap: 15px; }
.about-footer .meta div { grid-template-columns: 64px 1fr; gap: 20px; }
.about-footer .meta dt { color: #84847c; font-weight: 400; }
.about-footer .meta dd { color: #c9c8c0; }
.about-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid #252522;
  color: #8f8f87;
  font-size: 11px;
}
.about-footer__signature { display: flex; align-items: center; gap: 20px; }
.about-footer__signature img { width: 70px; height: auto; filter: brightness(0) invert(1); }
.about-footer__bottom p { margin: 0; }
.about-footer__bottom a { text-decoration: none; }
.about-footer__bottom a:hover { color: #fff; }
@keyframes coupon-float {
  0%, 100% { transform: translate3d(0, -12px, 0) rotateX(-3deg) rotateY(4deg) rotateZ(.5deg); }
  50% { transform: translate3d(0, 7px, 0) rotateX(2deg) rotateY(-3deg) rotateZ(-.5deg); }
}
@keyframes coupon-ground-shadow {
  0%, 100% {
    opacity: .65;
    transform: translateX(calc(-42% + var(--shadow-x, 0px))) translateY(7px) rotateX(63deg) rotateZ(-13deg) scale(1.07);
  }
  50% {
    opacity: .91;
    transform: translateX(calc(-46% + var(--shadow-x, 0px))) rotateX(63deg) rotateZ(-11deg) scale(.96);
  }
}

@media (max-width: 860px) {
  .contact { padding-top: 72px; }
  .contact-intro { width: 190px; margin-right: 0; font-size: 14px; }
  .coupon-float { width: min(620px, 88vw); }
  .coupon-stage { min-height: 480px; }
  .about-footer .about-cols { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .contact { padding-top: 64px; padding-bottom: 30px; }
  .contact-heading { display: block; }
  .contact h2 { margin-top: 30px; font-size: clamp(48px, 12vw, 68px); }
  .contact-intro { width: 235px; margin: 24px 0 0 auto; }
  .coupon-stage { min-height: 340px; margin-top: 15px; perspective: 700px; }
  .coupon-stage::before { width: 145%; height: 340px; top: 44%; }
  .coupon-stage::after { height: 330px; filter: blur(18px); }
  .coupon-float { width: min(450px, 88vw); }
  .coupon { aspect-ratio: 1.85; --ticket-x: 15deg; --ticket-y: -15deg; }
  .coupon__main { padding: 14px 15px 16px; gap: 12px; }
  .coupon__top { gap: 5px; }
  .coupon__logo { width: 42px; height: 18px; }
  .coupon__edition { font-size: 6px; }
  .coupon__title { font-size: clamp(25px, 7.4vw, 40px); }
  .coupon__details { font-size: 7px; margin-top: 6px; }
  .scratch { height: 46px; }
  .scratch__email { padding: 0 8px; font-size: clamp(12px, 3.6vw, 19px); letter-spacing: -.045em; }
  .scratch__email span { font-size: 18px; }
  .coupon__stub { padding: 18px 7px 16px; }
  .coupon__stamp { width: 46px; height: 46px; font-size: 6px; }
  .coupon__serial { font-size: 6px; }
  .coupon__barcode { height: 24px; }
  .coupon-shadow { top: calc(50% + 78px); height: 76px; filter: blur(13px); }
  .contact-instructions { margin: -4px 0 24px; }
  .contact-instructions p { font-size: 12px; }
  .contact-bottom { font-size: 10px; padding-top: 18px; }
  #about.about-footer { padding-top: 38px; }
  .about-footer h2 { margin-bottom: 27px; }
  .about-footer .about-lead { font-size: 25px; }
  .about-footer .meta { font-size: 12px; }
  .about-footer .meta div { gap: 14px; }
  .about-footer__bottom { margin-top: 48px; align-items: center; }
  .about-footer__signature { gap: 12px; }
  .about-footer__signature img { width: 50px; }
  .about-footer__bottom p { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .coupon-float, .coupon-shadow { animation: none; }
  .coupon { transition: none; }
  .scratch canvas { transition: none; }
}
