/* enhance3.css — Phase B of the "construction drawings" direction: revision marks on every sheet and the approval stamp.
   Art direction: Claude Opus via Abacus; built by Sonnet. All motion is gated by html.motion. */
:root { --rev: #ff7a66; }
:root[data-theme="white"] { --rev: #b8311c; }

/* a revision tag with a scalloped "revision cloud" border; it reads REV 0 · DRAFT until the sheet has been read */
.rev {
  display: inline-block; margin-inline-start: auto; align-self: flex-start; position: relative; padding: 7px 16px; border-style: solid; border-width: 10px;
  font: 700 10px/1 var(--mono); letter-spacing: .1em; color: var(--rev); text-transform: uppercase; white-space: nowrap;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23ff7a66' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 10Q15 1 20 10M20 10Q29 15 20 20M20 20Q15 29 10 20M10 20Q1 15 10 10'/%3E%3C/svg%3E") 10 / 10px round;
  transition: color .5s, opacity .5s;
}
:root[data-theme="white"] .rev {
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23b8311c' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 10Q15 1 20 10M20 10Q29 15 20 20M20 20Q15 29 10 20M10 20Q1 15 10 10'/%3E%3C/svg%3E");
}
.rev.done { color: var(--ok); opacity: .85; border-image-source: none; border-width: 1px; border-style: dashed; border-color: var(--ok); padding: 6px 15px; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  html.motion .rev { animation: fx-rev-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  html.motion .rev.done { animation: fx-rev-settle .6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes fx-rev-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
  @keyframes fx-rev-settle { from { transform: scale(1.06); } to { transform: none; } }
}

/* the approval stamp: lands on the sheet when the contact form was sent */
.appr-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.appr {
  pointer-events: auto; cursor: pointer; transform: rotate(-7deg); max-width: min(86vw, 640px); padding: 18px 28px 16px; text-align: center;
  border: 5px double var(--mark); color: var(--mark); background: color-mix(in srgb, var(--paper) 78%, transparent); border-radius: 6px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 0 0 2px var(--paper), 0 18px 60px rgba(0, 0, 0, .35);
}
.appr b { display: block; font: 700 clamp(18px, 4.6vw, 38px)/1.1 var(--mono); letter-spacing: .06em; }
.appr small { display: block; margin-top: 10px; font: 500 clamp(11px, 2.4vw, 14px)/1.4 var(--mono); }
[lang="ar"] .appr, [lang="ar"] .appr b, [lang="ar"] .appr small { letter-spacing: 0; text-transform: none; font-family: var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  html.motion .appr { animation: fx-appr .45s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes fx-appr { from { opacity: 0; transform: rotate(-3deg) scale(1.4); filter: blur(2px); } to { opacity: 1; transform: rotate(-7deg) scale(1); filter: blur(0); } }
  html.motion .appr.out { animation: fx-appr-out .4s ease-in both; }
  @keyframes fx-appr-out { to { opacity: 0; transform: rotate(-7deg) scale(.96); } }
}
.appr.out { opacity: 0; }
