/* ============================================================
   Blackwall — promote
   Normal document flow. The old build scaled this whole block to
   fit a fixed stage; nothing is scaled here, so nothing clips.
   ============================================================ */

/* ---------- hero ---------- */

.pyb-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-content: center;
  padding: clamp(48px, 10vh, 110px) 0;
  overflow: hidden;
  isolation: isolate;
}
.pyb-hero__inner { position: relative; z-index: 2; text-align: center; }

.pyb-hero__title {
  position: relative;
  margin: 0 auto;
  max-width: 17ch;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  letter-spacing: -0.03em;
}
.pyb-hero__short { display: none; }

.hint-word, .hint-target { display: inline; }
.hint-target { color: var(--wall); }


.pyb-hero__note {
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-size: 15px;
  color: var(--ink-40);
}

.pyb-hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 34px);
  translate: -50% 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.pyb-hero__cue-arrow { animation: scrollNudge 2.1s var(--ease-in) infinite; }

.hint-fx,
.hint-burst {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: visible;
}

.hint-fx {
  color: var(--wall);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 31, 61, 0.85));
}

/* stroke-dasharray / offset are set from JS once the path is measured */
.hint-fx__head { opacity: 0; }

.pyb-hero.is-hinting .hint-fx        { animation: fxShow 4.8s linear forwards; }
.pyb-hero.is-hinting .hint-fx__curve { animation: fxDraw 4.8s ease-in-out forwards; }
.pyb-hero.is-hinting .hint-fx__head  { animation: fxHead 4.8s ease forwards; }
.pyb-hero.is-hinting .hint-target    { animation: targetGlow 4.8s ease forwards; }

@keyframes fxShow {
  0%, 2% { opacity: 0; }
  5%, 82% { opacity: 1; }
  100%   { opacity: 0; }
}

/* drawn in, held, then erased from the tail - per-segment easing, since a
   single timing function across the whole keyframe set reads as linear */
@keyframes fxDraw {
  0%, 3% {
    stroke-dashoffset: var(--dash, 400px);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  27% {
    stroke-dashoffset: 0;
    animation-timing-function: linear;
  }
  54% {
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  80%, 100% {
    stroke-dashoffset: calc(var(--dash, 400px) * -1);
  }
}

@keyframes fxHead {
  0%, 23% { opacity: 0; }
  28%     { opacity: 1; }
  72%     { opacity: 1; }
  80%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* lights up as the curve lands, holds ~2.5s, settles back */
@keyframes targetGlow {
  0%, 23% {
    color: #ffffff;
    text-shadow: none;
  }
  29%, 75% {
    color: var(--wall);
    text-shadow:
      0 0 18px rgba(255, 31, 61, 0.85),
      0 0 46px rgba(255, 31, 61, 0.45);
  }
  100% {
    color: #ffffff;
    text-shadow: none;
  }
}

/* ---------- burst ---------- */

.hint-burst b {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 5px);
  height: var(--h, 11px);
  margin: calc(var(--h, 11px) / -2) 0 0 calc(var(--w, 5px) / -2);
  border-radius: 999px;
  background: var(--wall);
  box-shadow: 0 0 9px rgba(255, 31, 61, 0.8);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)) scale(0.5);
}

.pyb-hero.is-hinting .hint-burst b {
  animation: burst 1500ms 1.12s forwards;
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)) scale(0.5);
    animation-timing-function: cubic-bezier(0.1, 0.9, 0.3, 1);
  }
  10% {
    opacity: 1;
    transform:
      translate3d(calc(var(--dx) * 0.34), var(--lift, -16px), 0)
      rotate(calc(var(--r0, 0deg) + 34deg)) scale(1);
    /* and from here it is falling, accelerating, with no pause */
    animation-timing-function: cubic-bezier(0.34, 0, 0.9, 0.42);
  }
  88% { opacity: 1; }
  100% {
    opacity: 0;
    transform:
      translate3d(var(--dx), var(--fall, 240px), 0)
      rotate(var(--spin, 260deg)) scale(0.86);
  }
}


/* the price keeps its own underline sweep */
.offer__price-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 3px;
  background: var(--wall);
  box-shadow:
    0 0 10px rgba(255, 31, 61, 0.95),
    0 0 26px rgba(255, 31, 61, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}

.pyb-hero.is-hinting .offer__price-value::after {
  animation: hintSweep 4.2s ease 0.9s forwards;
}

@keyframes hintSweep {
  0%   { transform: scaleX(0); opacity: 0; }
  8%   { opacity: 1; }
  24%  { transform: scaleX(1); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pyb-hero.is-hinting .hint-fx,
  .pyb-hero.is-hinting .hint-fx__curve,
  .pyb-hero.is-hinting .hint-fx__head,
  .pyb-hero.is-hinting .hint-target,
  .pyb-hero.is-hinting .hint-burst b,
  .pyb-hero.is-hinting .offer__price-value::after { animation: none; }
}

/* ---------- notice ---------- */

.offers-block { padding: clamp(50px, 9vh, 110px) 0 0; }

.notice {
  --c: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(34px, 6vh, 64px);
  padding: 12px 20px;
  --edge-col: var(--wall-45);
  --edge-fill: #190309;
}
.notice__icon { flex: 0 0 auto; width: 18px; height: 18px; fill: var(--wall); }
.notice__title { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }

/* ---------- service switcher ---------- */

.picker { display: none; position: relative; margin: 0 auto clamp(22px, 4vh, 34px); max-width: 420px; }

.picker__btn {
  --c: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border: 0;
  --edge-col: var(--hairline);
  --edge-fill: var(--panel-hi);
  cursor: pointer;
}
.picker__caret { width: 12px; height: 8px; color: var(--wall); transition: transform 220ms var(--ease-out); }
.picker.is-open .picker__caret { transform: rotate(180deg); }

.picker__menu {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  --edge-col: var(--wall-45);
  --edge-fill: var(--panel-hi);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.75));
}
.picker__menu li {
  padding: 12px 14px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-60);
  cursor: pointer;
}
.picker__menu li:hover { color: var(--ink); background: var(--wall-12); }
.picker__menu li[aria-selected="true"] { color: var(--wall); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-bottom: clamp(26px, 5vh, 44px);
  border-bottom: 1px solid var(--hairline);
}
.tab {
  position: relative;
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 180ms var(--ease-out);
}
.tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--wall);
  transform: scaleX(0);
  transition: transform 260ms var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--wall); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- offer panels ---------- */

.offer {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}
.offer[hidden] { display: none; }

.offer__title { font-size: clamp(1.5rem, 3.6vw, 2.4rem); margin: 0 0 16px; }
.offer__text  { margin: 0 auto 22px; max-width: 58ch; color: var(--ink-60); }

.offer__list { margin: 0 auto 26px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 56ch; }
.offer__list li { color: var(--ink-60); font-size: 15px; }
.offer__list--long { text-align: left; gap: 14px; }
.offer__list--long li { padding-left: 16px; border-left: 2px solid var(--wall-24); }
.offer__list--long b { color: var(--ink); }

.offer__note { margin: 0 auto 22px; max-width: 54ch; font-size: 14px; color: var(--ink-40); font-style: italic; }

.offer__price { margin-top: clamp(26px, 4vh, 40px); }
.offer__price-label {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.offer__price-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  font-weight: 700;
  color: var(--wall);
}
.offer__price-unit { font-size: 0.42em; color: var(--ink-60); letter-spacing: 0.08em; }
.offer__price-note { margin: 10px auto 0; max-width: 44ch; font-size: 13px; color: var(--ink-40); }

/* ---------- currency ---------- */

.currency { max-width: var(--measure); margin: clamp(44px, 8vh, 86px) auto 0; text-align: center; }
.currency__label {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.currency__lead { margin: 0 0 16px; font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; }
.currency__text { margin: 0 auto; max-width: 60ch; font-size: 15px; color: var(--ink-60); }
.currency__text b { color: var(--ink); }
.currency__terms {
  --c: 10px;
  display: inline-block;
  margin: 26px auto 0;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--ink);
  --edge-col: var(--hairline);
  --edge-fill: var(--panel-hi);
}

/* ---------- the agreement ---------- */

.doc-block { position: relative; padding: clamp(60px, 11vh, 140px) 0 0; }
.doc-block__inner { position: relative; }

.doc-seal {
  display: block;
  width: clamp(42px, 6vw, 66px);
  margin: 0 auto clamp(20px, 3vh, 32px);
  color: var(--wall);
}

/* chapter rail - a thin spine beside the document, filled as you read */
/* The rail hangs off the agreement column, not the shell: the shell is
   the full 1240 and its padding box starts near the viewport edge, so
   -34px from there put the rail off-screen. */
.doc-track {
  position: absolute;
  left: max(0px, calc(50% - (var(--measure) / 2) - 34px));
  top: 0;
  bottom: 0;
  width: 2px;
}
.doc-track__line, .doc-track__fill { position: absolute; inset: 0; }
.doc-track__line { background: var(--hairline); }
.doc-track__fill { background: var(--wall); transform-origin: 50% 0; transform: scaleY(var(--doc-p, 0)); }
.doc-track__marks { position: absolute; inset: 0; }
.doc-track__mark {
  position: absolute;
  left: 50%;
  width: 7px; height: 7px;
  translate: -50% -50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
  rotate: 45deg;
}
.doc-track__mark.is-on { background: var(--wall); box-shadow: inset 0 0 0 1.5px var(--wall); }

.agreement { max-width: var(--measure); margin-inline: auto; }
.agreement__eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wall);
  text-align: center;
}
.agreement__title { font-size: clamp(1.7rem, 4.4vw, 3rem); text-align: center; margin: 0 0 18px; }
.agreement__lead { margin: 0 auto clamp(30px, 5vh, 52px); max-width: 56ch; text-align: center; color: var(--ink-60); }

.toc {
  --c: 10px;
  margin: 0 0 clamp(34px, 6vh, 58px);
  padding: 20px 22px;
  --edge-col: var(--hairline);
  --edge-fill: var(--panel);
}
.toc__label {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.toc__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc__list a { color: var(--ink-60); text-decoration: none; font-size: 15px; }
.toc__list a:hover { color: var(--wall); }

.doc { color: var(--ink-60); }
.doc > p { margin: 0 0 18px; }
.doc h3 {
  margin: clamp(38px, 6vh, 60px) 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc h4 {
  margin: 26px 0 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--wall);
}
.doc ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; }
.doc li { font-size: 15px; }
.doc b { color: var(--ink); }

/* ---------- the gate ---------- */

.agree {
  margin: clamp(44px, 8vh, 80px) auto 0;
  text-align: center;
}

.agree__btn {
  --c: 14px;
  --edge-col: var(--wall);
  --edge-fill: #120206;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(255, 31, 61, 0.3), 0 0 90px rgba(255, 31, 61, 0.14);
  transition: box-shadow 220ms var(--ease-out);
}

.agree__label { position: relative; z-index: 1; }

/* Hover is a breach attempt, not a glow: the label tears into red and
   black and the whole face judders. A traced outline read as a stray
   pill sitting around a square button, so it is gone. */
.agree__btn:hover {
  --edge-fill: #26040C;
  box-shadow: 0 0 46px rgba(255, 31, 61, 0.5), 0 0 120px rgba(255, 31, 61, 0.22);
  animation: gateJudder 220ms steps(2, end) infinite;
}
.agree__btn:hover .agree__label::before { animation: tearRed 420ms steps(2, end) infinite; }
.agree__btn:hover .agree__label::after  { animation: tearDark 420ms steps(2, end) infinite; }
.agree__btn:hover .tearlines { animation: tearBars 360ms steps(2, end) infinite; }

.agree__btn:focus-visible { outline: 2px solid var(--wall-hot); outline-offset: 4px; }

@keyframes gateJudder {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-1.5px, 0.5px, 0); }
  50%  { transform: translate3d(1.5px, -0.5px, 0); }
  75%  { transform: translate3d(-0.5px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* the click: the gate blows open */
.agree__btn.is-breaching {
  animation: gateBreach 620ms steps(3, end) 1 forwards;
  pointer-events: none;
}
@keyframes gateBreach {
  0%   { transform: translate3d(0, 0, 0) scaleX(1);    --edge-fill: #26040C; }
  30%  { transform: translate3d(-7px, 0, 0) scaleX(1.03); }
  55%  { transform: translate3d(6px, 0, 0) scaleX(0.98); }
  80%  { transform: translate3d(-3px, 0, 0) scaleX(1.02); }
  100% { transform: translate3d(0, 0, 0) scaleX(1); opacity: 0.45; }
}

.agree__note { margin: 16px 0 0; font-size: 13px; color: var(--ink-40); }

/* ---------- contact ---------- */

.contact-block { padding: clamp(70px, 13vh, 160px) 0 0; }
.contact { text-align: center; }

.contact__icon { display: block; width: clamp(44px, 6vw, 62px); margin: 0 auto clamp(18px, 3vh, 28px); color: var(--wall); }

.contact__head { font-size: clamp(2rem, 6vw, 4.2rem); margin: 0 0 clamp(14px, 2.4vh, 22px); }
.contact__word { position: relative; display: inline-block; color: var(--wall); }
.contact__word-base { position: relative; }
.contact__word-sel {
  position: absolute;
  left: -0.09em; right: -0.09em; top: -0.05em; bottom: -0.05em;
  padding: 0.05em 0.09em;
  background: var(--wall);
  color: var(--ground);
  clip-path: inset(0 100% 0 0);
}
.contact__word.is-selecting .contact__word-sel {
  clip-path: inset(0 0 0 0);
  transition: clip-path 760ms cubic-bezier(0.62, 0.02, 0.2, 1);
}
.contact__word.is-clearing .contact__word-sel {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 680ms var(--ease-in);
}
.contact__dot { color: var(--wall); }

.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--wall);
  padding-bottom: 3px;
}
.contact__email:hover { color: var(--wall); }
.contact__note { margin: 20px auto 0; max-width: 46ch; font-size: 14px; color: var(--ink-40); }

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .doc-track { display: none; }
}

@media (max-width: 620px) {
  .tabs { display: none; }
  .picker { display: block; }

  .pyb-hero__title { font-size: clamp(2rem, 8.4vw, 3rem); max-width: 100%; }
  .hint-fx, .hint-burst { display: none; }

  .notice { width: auto; max-width: 320px; padding: 11px 14px; gap: 10px; }
  .notice__title { font-size: 12.5px; }

  .offer__list--long li { padding-left: 13px; }
  .toc { padding: 16px 16px; }
  .toc__list { padding-left: 18px; }
}

/* The short headline exists because the old pinned hero forced one line.
   Nothing is pinned now, so the full sentence wraps and stays - swapping it
   out was the regression last time. Only a genuinely tiny screen gets the
   short version. */
@media (max-width: 330px) {
  .pyb-hero__long { display: none; }
  .pyb-hero__short { display: inline; }
}

/* ---------- breaching into the contact block ---------- */

.contact-block { position: relative; overflow: hidden; }

.contact-block__scan {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wall-hot) 18%, #fff 50%, var(--wall-hot) 82%, transparent);
  box-shadow: 0 0 22px var(--wall), 0 0 60px var(--wall-45);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

/* the block is cut open from the middle out, with the scan line running
   ahead of the reveal and the whole thing juddering as it lands */
.contact-block.is-breaching { animation: breachShake 520ms steps(2, end) 2; }
.contact-block.is-breaching > .shell { animation: breachOpen 760ms var(--ease-out) 1 both; }
.contact-block.is-breaching .contact-block__scan { animation: breachScan 760ms var(--ease-out) 1; }
.contact-block.is-breaching .tearlines { animation: tearBars 420ms steps(2, end) 3; }

@keyframes breachOpen {
  0%   { clip-path: inset(50% 0 50% 0); opacity: 0; filter: brightness(2.4); }
  40%  { clip-path: inset(22% 0 22% 0); opacity: 1; filter: brightness(1.5); }
  100% { clip-path: inset(0 0 0 0);     opacity: 1; filter: none; }
}

@keyframes breachScan {
  0%   { top: 50%; opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { top: 2%;   opacity: 0; }
}

@keyframes breachShake {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-5px, 1px, 0); }
  50%  { transform: translate3d(4px, -2px, 0); }
  75%  { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* the address lands hot, then cools */
.contact-block.is-breaching .contact__email {
  color: var(--wall-hot);
  text-shadow: 0 0 18px var(--wall);
}

@media (prefers-reduced-motion: reduce) {
  .contact-block.is-breaching,
  .contact-block.is-breaching > .shell,
  .contact-block.is-breaching .contact-block__scan,
  .contact-block.is-breaching .tearlines { animation: none; }
  .agree__btn:hover { animation: none; }
}

/* the breach grid that opens the contact block */
.contact__breach[hidden] { display: none; }

.contact__breach {
  width: min(340px, 78vw);
  margin: 0 auto clamp(22px, 4vh, 38px);
  background: rgba(10, 2, 5, 0.9);
  box-shadow: inset 0 0 0 1px var(--wall-45), 0 0 34px rgba(255, 31, 61, 0.2);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  opacity: 0;
  transform: scaleY(0.05);
  transform-origin: 50% 50%;
}

.contact__breach.is-live {
  opacity: 1;
  transform: scaleY(1);
  transition: transform 320ms cubic-bezier(0.12, 1.5, 0.3, 1), opacity 140ms linear;
}

/* solved: it flares, then is wiped - the breach is over, so leaving the
   grid sitting under the address made the section look unfinished */
.contact__breach.is-solved {
  opacity: 0;
  transform: scaleY(0.5);
  filter: blur(3px);
  transition: opacity 320ms var(--ease-out), transform 360ms var(--ease-out), filter 300ms linear;
}

/* The section itself does not exist until the grid breaks it open. */
.contact {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scaleY(0.97);
}
.contact-block.is-open .contact {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms linear, transform 520ms var(--ease-out);
}

.contact__breach-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 5px 9px;
  background: rgba(255, 31, 61, 0.18);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--wall-hot);
}

.contact__breach-grid { padding: 7px 8px; }

@media (prefers-reduced-motion: reduce) {
  .contact__breach { display: none; }
  .contact { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- the contact block under breach ---------- */

/* Scan work matching the intro: fine lines over everything, a red
   interference band that cuts in, and noise that only runs while the
   grid is working. */
.contact-block__lines,
.contact-block__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

.contact-block__lines {
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.4) 0 1px, transparent 1px 3px);
}

.contact-block__noise {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 31, 61, 0.3) 0 2px,
    transparent 2px 6px,
    rgba(255, 255, 255, 0.06) 6px 7px,
    transparent 7px 14px);
  mix-blend-mode: screen;
}

.contact-block.is-breaching .contact-block__lines { opacity: 1; }
.contact-block.is-breaching .contact-block__noise { animation: breachNoise 520ms steps(3, end) infinite; }

@keyframes breachNoise {
  0%, 48% { opacity: 0;   transform: translate3d(0, 0, 0); }
  54%     { opacity: 0.9; transform: translate3d(-10px, 5px, 0); }
  62%     { opacity: 0.3; transform: translate3d(8px, -7px, 0); }
  72%     { opacity: 0.8; transform: translate3d(-5px, 3px, 0); }
  80%     { opacity: 0;   transform: translate3d(0, 0, 0); }
  100%    { opacity: 0; }
}

/* the address is not there until the grid breaks it out */
.contact__email {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
}
.contact-block.is-open .contact__email,
.contact-block:not(.is-breaching):not(.is-open) .contact__email {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms linear, transform 320ms var(--ease-out);
}

/* while it is being broken out it burns, then cools */
.contact-block.is-open .contact__email {
  animation: emailBurn 1400ms ease-out 1;
}
@keyframes emailBurn {
  0%   { color: #fff; text-shadow: 0 0 26px var(--wall-hot), 0 0 60px var(--wall); }
  60%  { color: var(--wall-hot); text-shadow: 0 0 16px var(--wall); }
  100% { color: var(--ink); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact__email { opacity: 1; visibility: visible; transform: none; animation: none; }
  .contact-block__lines, .contact-block__noise { display: none; }
}
