/* johnplumitis.com: fonts + base + form styles (built from ud-red-10). */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* johnplumitis.com — typography and form styling follow UniSource Direct (Outfit, #C8102E, field metrics). */
:root {
  --red: #C8102E;
  --red-hover: #a50d26;
  --ink: #2B2B2B;
  --gray: #6B6B6B;
  --light: #F5F5F4;
  --label: rgba(0, 0, 0, 0.85);
  --sublabel: rgba(0, 0, 0, 0.55);
  --field-text: rgba(0, 0, 0, 0.7);
  --field-border: rgba(0, 0, 0, 0.25);
  --required: #C8102E;
  --panel: rgba(245, 245, 244, 0.84);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #000;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Long-exposure Atlantic (3:2, color). 20% keeps the darkened upper sky
     behind the name and most of the dark foreground water on a 16:9 desktop. */
  background-color: #000;
}

/* Immediate color wash (tiny inlined image) so the page is not black
   while the full photograph downloads. Same 20% position as the photo. */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAIAAACor3u9AAAET0lEQVR42i2Vy44luQ1E+QhSeW9Xz4zhjeGFt/7/X/N0VaXElxfZAigtgwjxBPn97//CoGowg7nC1VzV3H2ZOVREhAnKgDrMAFVhlhk652TsqRQippmeqsrI6cxz7r3vc0NURKEwmJs5bMEuc1/mDjWoqojMAgBzN1M1qDJn1rfQQEyYmWa6s6oyI+/73DOoQhoUpmoCE5jCATezZWZmgLqpKkN4uZvBzRxymRHNfW+wmy5hnu7qqqy9D3UzM5M41N4LBoO7wBWu7qpmgAhD2VQBhaopm2EZluvL3VQj8+XAZUzU09PdxZvobJqZl8vHegldygRAzU3hAlOFAiTEzMLMwsKswqqqKoBchsuNaGh4WImahkBMTNHDUz/f/o8fTjM8zTzChK4SGoOqu8IBUxWFkjARDRHRiLAKX4blBkhkZfdU87SBwUQsl73+eL+6qqeYhommq7swNDXT00rj5raWmblCeIhGzczUHS/X9+UKuU+ciKpymY/L1gITZ1ZXMY1Curl7potHpgtmvtbL10vMiwrTUH2/fxgkM5TncU6BppGZZXhfbkKXQYS6e2bWopnJzM7syurYkZ+f3//7+xNFFF3aZcD1+ni/Xu/rel0vQBwfTGNK76VvB4Qd8naFQoSZhnlmfs/+Pue+z+fX969fX79+fX19ft973+dAVUUxasPKDxTma/n7tVR4pk1luZpJd41wkmS2MAtPVVX1U+dUNS339Zf8849V8bF3fH7dECGaMq5L2ySVazoi7tARNzO5jH++bbm7qasIszA/PxiRkdlVnamqceTsvSPPXfcd3/f31+c3f/zrP/AL7jC33/dyX+YGA6Bu9l7+Wu5ml9tvtpmUSIh45hGozMw4e5/73Pv+vr/3vvfeWL7UTFWhYiIGdaipKI106ZA0d3LycCfVbrMnjExVmZmGZ4SJlLtYmEVIhaFSqqWKHz//XNfrul7ruq5rLV/uvpb7kxXKy8zdnswTImaaHqKh6emqrO6sqHPOfd9n3+fs+973fe+9994QeSaiqau7uqKS2pTZVfWxHirAI8dED38PRqX6PEmCYRDrCIpQo01aI+Bq6uIZngEzRExEuqmyk5q5aCBLmKanaYiJ5jld1V1ZUSciIiNOZGRkVRINMTOL/vj5F81wtxDRzHQzEQ9RF3XRNPVM5FRN5kxTFQ3NdJ3TGVUdJ87ZGTvixInIqKyIPOdEBPL7k3LPtj53fGP5iuUOmMHd3czdfTlgKkxEqmp+wa/ujjiVEWfHOZlxzokTWRWREbsiKwP78+8EEsj7E6YHWNcLqirs7uu6nsQG4L4USswPjArrqu6prHN2nHMiMjOzIjMjIyLi8I/X+1laUAEUKqry9G1mAEREVQAAMHMRmRkReTwmlsqoaiLOmox6RDIrK6uaDRAhsKiKqqiIqAIAVEVU1cwBiIqKsogwz0xmTBUDIuiuqiLiGSKWGa5nA1VX9f8B5AgPIXxjOF8AAAAASUVORK5CYII=");
  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: cover;
  filter: blur(20px);
  -webkit-filter: blur(20px);
  /* Scale past the edges so the blur does not show a bright fringe. */
  transform: scale(1.12);
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("/assets/img/ocean-long-exposure-level-p.jpg");
  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: cover;
  pointer-events: none;
}

/* With JS: hide the photo until it has loaded, then fade it in.
   Without JS: the photo is visible as soon as the browser paints it. */
html.bg-js .bg-photo {
  opacity: 0;
}
html.bg-js .bg.bg-ready .bg-photo {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(32px, 5.5vh, 64px) 24px 48px;
}

.logo {
  margin: 0 0 24px;
  text-align: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: auto;
  margin: 0 auto;
}

/* Widths tuned so each wordmark feels comparable in presence. */
.logo-a img { width: min(460px, 86vw); }
.logo-b img { width: min(560px, 90vw); }
.logo-c img { width: min(420px, 84vw); }

.form-panel {
  width: 100%;
  max-width: 640px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 32px 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

form { margin: 0; }

.field { margin: 0 0 12px; }

.field legend,
.field > label.label {
  display: block;
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  color: var(--label);
  margin: 0 0 8px;
}

.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.field legend { padding: 0; }

.req {
  color: var(--required);
  font-weight: 500;
}

/* Nov 21: required asterisks match the white labels; Submit / UniSource stay red. */
.form-v3 .req {
  color: #fff;
}

.name-row {
  display: flex;
  gap: 16px;
}

.name-col {
  flex: 1 1 0;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 19px;
  color: var(--field-text);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  padding: 0 14px;
  height: 43px;
  margin: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  height: auto;
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(43, 43, 43, 0.28);
  outline-offset: 1px;
  border-color: rgba(0, 0, 0, 0.4);
}

.sublabel {
  display: block;
  font-size: 14px;
  line-height: 17px;
  color: var(--sublabel);
  font-weight: 400;
  margin: 5px 0 0;
}

.hp {
  position: absolute !important;
  overflow: hidden !important;
  height: 1px !important;
  width: 1px !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

.submit-row { margin-top: 10px; }

button[type="submit"] {
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  border-radius: 2px;
  padding: 14px 28px;
  height: 45px;
  cursor: pointer;
  box-shadow: none;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: none;
  outline: none;
}

@media (max-width: 520px) {
  .page { padding: 36px 16px 40px; }
  .form-panel { padding: 24px 20px 22px; }
  .logo { margin-bottom: 20px; }
  .name-row { gap: 12px; }
}

@media (max-width: 380px) {
  .name-row { flex-direction: column; gap: 15px; }
}
/* Option C form-style variants: keep the photo stark; only red is the logo dash and Submit. */

.stark .page {
  padding: 28px 24px 36px;
}

.stark .logo {
  margin: 0 0 18px;
}

.stark .logo-c img {
  width: min(325.16px, 80vw);
}

.stark .form-wrap {
  width: 100%;
  max-width: 520px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stark .field {
  margin: 0 0 10px;
}

.stark textarea {
  min-height: 80px;
}

.stark .field legend,
.stark .field > label.label {
  margin-bottom: 6px;
}

/* ---------- 1. No panel: fields on the photo ---------- */
.form-v1 .field legend,
.form-v1 .field > label.label {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 0, 0, 0.35);
}

.form-v1 .sublabel {
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.6);
}

.form-v1 input[type="text"],
.form-v1 input[type="email"],
.form-v1 input[type="tel"],
.form-v1 textarea {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid #fff;
  border-radius: 2px;
  /* Thin dark outer edge so the box stays visible on bright sand as well as sky. */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.22);
}

.form-v1 input:focus,
.form-v1 textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.22);
}

/* ---------- 2. Dark translucent panel ---------- */
.form-v2 .form-wrap {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 28px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.form-v2 .field legend,
.form-v2 .field > label.label {
  color: #fff;
}

.form-v2 .sublabel {
  color: rgba(255, 255, 255, 0.78);
}

.form-v2 input[type="text"],
.form-v2 input[type="email"],
.form-v2 input[type="tel"],
.form-v2 textarea {
  color: #fff;
  caret-color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  box-shadow: none;
}

.form-v2 input:focus,
.form-v2 textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
  border-color: #fff;
}

.form-v2 input:-webkit-autofill,
.form-v2 textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}

/* ---------- 3. Minimal line style ---------- */
.form-v3 .field legend,
.form-v3 .field > label.label {
  color: #fff;
  text-shadow: none;
}

.form-v3 .sublabel {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}

.form-v3 .field-name {
  margin-bottom: 18px;
}

.form-v3 .sublabel {
  margin-top: 8px;
}

.form-v3 input[type="text"],
.form-v3 input[type="email"],
.form-v3 input[type="tel"] {
  color: #fff;
  caret-color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  height: 34px;
  box-shadow: none;
  text-shadow: none;
}

.form-v3 textarea {
  color: #fff;
  caret-color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
}

.form-v3 input:focus,
.form-v3 textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: none;
}

.form-v3 textarea:focus {
  box-shadow: 0 0 0 1px #fff;
}

.form-v3 input:-webkit-autofill,
.form-v3 textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}

@media (max-width: 520px) {
  .stark .page { padding: 28px 16px 32px; }
  .stark .logo { margin-bottom: 16px; }
  .stark .logo-c img { width: min(256.70px, 86vw); }
  .form-v2 .form-wrap { padding: 20px 18px 18px; }
  .stark textarea { min-height: 76px; }
}

/* c-form3-v2: heavier, brighter message outline + faint dark fill for sand contrast */
.form-v3-v2 textarea {
  background: rgba(0, 0, 0, 0.12);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.form-v3-v2 textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.55);
}

/* Quiet UniSource Direct links on the Option C form-3 page */
.ud-founder {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 12px 8px 0;
}

.ud-founder .ud-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.6);
}

.ud-founder img {
  display: block;
  width: 148px;
  height: auto;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.95))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 14px rgba(0, 0, 0, 0.45));
}

.ud-founder:hover .ud-label { color: #fff; }

.ud-textline {
  margin: auto 0 0;
  text-align: center;
  padding: 12px 8px 0;
}

.ud-textline a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 0, 0, 0.65);
}

.ud-textline a:hover { color: #fff; opacity: 0.85; }

.ud-corner {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-decoration: none;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.95))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 12px rgba(0, 0, 0, 0.4));
}

.ud-corner img,
.ud-corner span {
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.ud-corner:hover img,
.ud-corner:hover span,
.ud-corner:focus-visible img,
.ud-corner:focus-visible span {
  opacity: 1;
}

.ud-corner img {
  display: block;
  width: 118px;
  height: auto;
}

.ud-corner span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

@media (max-width: 520px) {
  .ud-founder img { width: 128px; }
  .ud-corner { right: 14px; bottom: 12px; }
  .ud-corner img { width: 100px; }
  .ud-corner span { font-size: 9px; }
}

/* Soft UniSource wordmark (placement B, bottom center).
   Nov 22: footer wordmark + triangle scaled +15% from the live +35% sizes.
   No box or border: just the white mark + small triangle, at rest
   75% white, fading to full white on hover/focus. */
.ud-red {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18.63px;
  height: 74.52px;
  padding: 0 18.4px 0 20.7px;
  background: none;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  line-height: 0;
  color: #fff;
  box-shadow: none;
}

.ud-red img {
  display: block;
  height: 34.16px;
  width: auto;
  opacity: 0.75;
  filter: none;
  transition: opacity 0.3s ease;
}

.ud-red .ud-tri {
  display: block;
  width: 10.87px;
  height: 15.53px;
  flex: 0 0 auto;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.ud-red:hover .ud-tri,
.ud-red:focus-visible .ud-tri {
  transform: translateX(3px);
}

.ud-red:hover,
.ud-red:focus-visible {
  background: none;
  color: #fff;
  box-shadow: none;
}

.ud-red:hover img,
.ud-red:hover .ud-tri,
.ud-red:focus-visible img,
.ud-red:focus-visible .ud-tri {
  opacity: 1;
  filter: none;
}

/* Low-key keyboard focus: thin white outline, offset so it does not
   sit on the letters. Hover has no outline. */
.ud-red:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}
.ud-red:hover:not(:focus-visible) {
  outline: none;
}

.ud-red-2 {
  color: #E0E0E0;
}

@media (max-width: 520px) {
  .ud-red {
    height: 71.42px;
    gap: 15.53px;
    padding: 0 16.1px 0 18.4px;
  }
  .ud-red img { height: 31.05px; }
}

/* Quieter red-block signature (ud-red-3).
   Originally ~18% smaller than ud-red-1; later scaled, then Nov 22 +15%
   from the live sizes (wordmark 20.25→23.29 desktop, 18.9→21.74 phone).
   Triangle is optically centered on the lowercase x-height. */
.ud-red-3 {
  height: 52.79px;
  gap: 12.42px;
  padding: 0 12.65px 0 14.95px;
}

.ud-red-3 img {
  height: 23.29px;
}

.ud-red-3 .ud-tri {
  width: 7.76px;
  height: 10.87px;
  /* Shift down onto the lowercase x-height midline.
     (source mid 52.5 vs image mid 41; 11.5/82 × 23.29px ≈ 3.27px).
     Use relative top, not margin, so flex centering is not halved. */
  position: relative;
  top: 3.27px;
}

@media (max-width: 520px) {
  .ud-red-3 {
    height: 49.68px;
    gap: 12.42px;
    padding: 0 11.5px 0 13.8px;
  }
  .ud-red-3 img { height: 21.74px; }
  .ud-red-3 .ud-tri {
    width: 7.29px;
    height: 10.25px;
    position: relative;
    top: 3.05px; /* 11.5 / 82 × 21.74px */
  }
}

/* ud-red-4: one-time entrance, timed to the live UniSource home hero.
   Live site (fetched from www.unisource-direct.com Additional CSS):
     headline usd-hx-in: 700ms ease, fade + translateY(8px);
     section usd-reveal: 500ms ease, fade + translateY(12px);
     red dash usd-hdash-in: 400ms ease, delay 1.2s.
   This block uses the same ease, 700ms duration, and a 12px rise,
   with a 1.0s pause so it enters as quietly as the red dash. */
@media (prefers-reduced-motion: no-preference) {
  .ud-red-4 {
    animation: ud-red-enter 700ms ease 1000ms both;
  }
  .ud-red-4 .ud-tri {
    /* Starts after the block settles (1000 + 700 + 200ms).
       Fill mode none so the existing hover translateX still works. */
    animation: ud-red-tri-nudge 700ms ease-in-out 1900ms;
  }
}

@keyframes ud-red-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ud-red-tri-nudge {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ud-red-4 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ud-red-4 .ud-tri {
    animation: none;
    transform: none;
  }
}

/* ========== ud-red-5 ========== */
/* Load sequence, max ~2.5s: name (usd-hx-in) → dash (usd-hdash-in) →
   form → red block. Thank-you, footer, and a 1200px mobile background. */

body.ud-red-5 h1.logo {
  overflow: visible;
}

body.ud-red-5 .logo-c .logo-mark {
  display: block;
  /* Nov 21: last name 15% smaller; 380 * 723.091 / 845.048 so JOHN D. stays the same size. */
  width: min(325.16px, 80vw);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

body.ud-red-5 .logo-dash {
  display: none;
  transform-box: fill-box;
  transform-origin: left center;
}

@media (max-width: 520px) {
  body.ud-red-5 .logo-c .logo-mark {
    /* Nov 21: 300 * 723.091 / 845.048 */
    width: min(256.70px, 86vw);
  }
}

/* Full-quality original on desktop; 1800px-long-edge JPEG for ≤768px. */
@media (max-width: 768px) {
  body.ud-red-5 .bg-photo {
    background-image: url("/assets/img/ocean-long-exposure-level-p-1200.jpg");
  }
}

/* Thank-you confirmation (shown after a successful send). */
body.ud-red-5 .thanks {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-shadow: none;
}

body.ud-red-5 .thanks:focus {
  outline: none;
}

body.ud-red-5.is-thanks .form-wrap {
  /* Keep the wrap from collapsing to a sliver under the logo. */
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  body.ud-red-5.is-thanks .thanks {
    animation: jp-thanks-in 500ms ease both;
  }
}

/* Handwritten "John" under the thank-you line.
   John's own signature (scan, real3), rebuilt as solid ink and revealed in
   pen order through centerline SVG masks after the thank-you fades in. */
.thanks-sig {
  display: none;
  margin: 10px auto 0;
  width: min(225px, 62vw);
  line-height: 0;
  pointer-events: none;
}

body.is-thanks .thanks-sig {
  display: block;
}

.thanks-sig-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 0 auto;
}

.sig-mask-stroke {
  stroke-dasharray: 1.04;
  stroke-dashoffset: 1.04;
  opacity: 0;
}

@keyframes jp-sig-r3-1 {
  0% { stroke-dashoffset: 1.040; opacity: 0; }
  1% { stroke-dashoffset: 1.000; opacity: 1; }
  5% { stroke-dashoffset: 0.958; opacity: 1; }
  10% { stroke-dashoffset: 0.909; opacity: 1; }
  15% { stroke-dashoffset: 0.860; opacity: 1; }
  20% { stroke-dashoffset: 0.806; opacity: 1; }
  25% { stroke-dashoffset: 0.752; opacity: 1; }
  30% { stroke-dashoffset: 0.697; opacity: 1; }
  35% { stroke-dashoffset: 0.640; opacity: 1; }
  40% { stroke-dashoffset: 0.587; opacity: 1; }
  45% { stroke-dashoffset: 0.544; opacity: 1; }
  50% { stroke-dashoffset: 0.499; opacity: 1; }
  55% { stroke-dashoffset: 0.446; opacity: 1; }
  60% { stroke-dashoffset: 0.390; opacity: 1; }
  65% { stroke-dashoffset: 0.333; opacity: 1; }
  70% { stroke-dashoffset: 0.280; opacity: 1; }
  75% { stroke-dashoffset: 0.237; opacity: 1; }
  80% { stroke-dashoffset: 0.196; opacity: 1; }
  85% { stroke-dashoffset: 0.141; opacity: 1; }
  90% { stroke-dashoffset: 0.095; opacity: 1; }
  95% { stroke-dashoffset: 0.038; opacity: 1; }
  100% { stroke-dashoffset: 0.000; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  body.is-thanks .thanks-sig-real3 .sig-s1 { animation: jp-sig-r3-1 781ms linear 480ms both; }
}
@keyframes jp-sig-r3-2 {
  0% { stroke-dashoffset: 1.040; opacity: 0; }
  1% { stroke-dashoffset: 1.000; opacity: 1; }
  5% { stroke-dashoffset: 0.955; opacity: 1; }
  10% { stroke-dashoffset: 0.888; opacity: 1; }
  15% { stroke-dashoffset: 0.834; opacity: 1; }
  20% { stroke-dashoffset: 0.767; opacity: 1; }
  25% { stroke-dashoffset: 0.708; opacity: 1; }
  30% { stroke-dashoffset: 0.655; opacity: 1; }
  35% { stroke-dashoffset: 0.602; opacity: 1; }
  40% { stroke-dashoffset: 0.566; opacity: 1; }
  45% { stroke-dashoffset: 0.514; opacity: 1; }
  50% { stroke-dashoffset: 0.484; opacity: 1; }
  55% { stroke-dashoffset: 0.431; opacity: 1; }
  60% { stroke-dashoffset: 0.402; opacity: 1; }
  65% { stroke-dashoffset: 0.367; opacity: 1; }
  70% { stroke-dashoffset: 0.318; opacity: 1; }
  75% { stroke-dashoffset: 0.256; opacity: 1; }
  80% { stroke-dashoffset: 0.191; opacity: 1; }
  85% { stroke-dashoffset: 0.143; opacity: 1; }
  90% { stroke-dashoffset: 0.083; opacity: 1; }
  95% { stroke-dashoffset: 0.021; opacity: 1; }
  100% { stroke-dashoffset: 0.000; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  body.is-thanks .thanks-sig-real3 .sig-s2 { animation: jp-sig-r3-2 786ms linear 1311ms both; }
}
@keyframes jp-sig-r3-3 {
  0% { stroke-dashoffset: 1.040; opacity: 0; }
  1% { stroke-dashoffset: 1.000; opacity: 1; }
  5% { stroke-dashoffset: 0.962; opacity: 1; }
  10% { stroke-dashoffset: 0.897; opacity: 1; }
  15% { stroke-dashoffset: 0.828; opacity: 1; }
  20% { stroke-dashoffset: 0.761; opacity: 1; }
  25% { stroke-dashoffset: 0.713; opacity: 1; }
  30% { stroke-dashoffset: 0.663; opacity: 1; }
  35% { stroke-dashoffset: 0.612; opacity: 1; }
  40% { stroke-dashoffset: 0.544; opacity: 1; }
  45% { stroke-dashoffset: 0.490; opacity: 1; }
  50% { stroke-dashoffset: 0.460; opacity: 1; }
  55% { stroke-dashoffset: 0.426; opacity: 1; }
  60% { stroke-dashoffset: 0.364; opacity: 1; }
  65% { stroke-dashoffset: 0.327; opacity: 1; }
  70% { stroke-dashoffset: 0.293; opacity: 1; }
  75% { stroke-dashoffset: 0.244; opacity: 1; }
  80% { stroke-dashoffset: 0.202; opacity: 1; }
  85% { stroke-dashoffset: 0.162; opacity: 1; }
  90% { stroke-dashoffset: 0.118; opacity: 1; }
  95% { stroke-dashoffset: 0.051; opacity: 1; }
  100% { stroke-dashoffset: 0.000; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  body.is-thanks .thanks-sig-real3 .sig-s3 { animation: jp-sig-r3-3 383ms linear 2147ms both; }
}


@media (prefers-reduced-motion: reduce) {
  body.is-thanks .thanks-sig .sig-mask-stroke {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}


@keyframes jp-thanks-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Tiny low-key footer, centered under the red block so the two
   don't compete. Extra page padding keeps the block sitting above it. */
body.ud-red-5 .page {
  padding-bottom: 52px;
}

body.ud-red-5 .site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 0 3px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 0, 0, 0.55);
}

body.ud-red-5 .site-foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

body.ud-red-5 .site-foot a:hover,
body.ud-red-5 .site-foot a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  body.ud-red-5 .page {
    padding-bottom: 52px;
  }
  body.ud-red-5 .site-foot {
    bottom: 12px;
  }
}

/* Load sequence (prefers-reduced-motion: show everything, no motion).
     0.0–0.7s  name: 700ms ease, 8px rise (usd-hx-in)
     1.2–1.6s  dash: 400ms ease, scaleX (usd-hdash-in @ 1.2s)
     1.4–1.9s  form: 500ms ease, 8px rise (gentle)
     1.8–2.5s  red block: 700ms ease, 12px rise (shifted later)
     2.7–3.4s  triangle nudge, once */
@media (prefers-reduced-motion: no-preference) {
  body.ud-red-5 h1.logo {
    animation: jp-logo-in 700ms ease both;
  }
  body.ud-red-5 .logo-dash {
    animation: jp-dash-in 400ms ease 1200ms both;
  }
  body.ud-red-5 .form-wrap {
    animation: jp-form-in 500ms ease 1400ms both;
  }
  body.ud-red-5 .site-foot {
    animation: jp-foot-in 500ms ease 2000ms both;
  }
  body.ud-red-5 .ud-red-4 {
    animation-delay: 1800ms;
  }
  body.ud-red-5 .ud-red-4 .ud-tri {
    animation-delay: 2700ms;
  }
}

@keyframes jp-logo-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes jp-dash-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes jp-form-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes jp-foot-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.ud-red-5 h1.logo,
  body.ud-red-5 .logo-dash,
  body.ud-red-5 .form-wrap,
  body.ud-red-5 .site-foot,
  body.ud-red-5 .thanks,
  body.ud-red-5 .ud-red-4 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  body.ud-red-5 .ud-red-4 .ud-tri {
    animation: none;
    transform: none;
  }
}

/* ud-red-6: slim solid black footer band at the very bottom of the page.
   Crisp type, no shadow. The photo still covers the full viewport behind. */
body.ud-red-6 .page {
  padding-bottom: 58px; /* 38px band + 20px gap above it */
}

body.ud-red-6 .site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 38px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #F0F0F0;
  text-shadow: none;
  animation: none;
}

body.ud-red-6 .site-foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 240, 240, 0.45);
}

body.ud-red-6 .site-foot a:hover,
body.ud-red-6 .site-foot a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  body.ud-red-6 .page {
    padding-bottom: 56px;
  }
  body.ud-red-6 .site-foot {
    height: 36px;
    font-size: 12px;
    bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.ud-red-6 .site-foot {
    animation: none;
  }
}

/* ud-red-7: consistent footer type in the black band.
   Privacy matches the copyright line; underline only on hover.
   Even 12px space around a thin vertical separator. */
body.ud-red-7 .page {
  padding-bottom: 59px; /* 39px band + 20px gap */
}

body.ud-red-7 .site-foot {
  height: 39px;
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0.03em;
  color: #CFCFCF;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body.ud-red-7 .site-foot-copy,
body.ud-red-7 .site-foot a {
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

body.ud-red-7 .site-foot-sep {
  display: block;
  width: 1px;
  height: 11px;
  margin: 0 12px;
  padding: 0;
  background: #CFCFCF;
  opacity: 0.7;
  flex: 0 0 auto;
  letter-spacing: 0;
}

body.ud-red-7 .site-foot a {
  text-decoration: none;
  border-bottom: none;
}

body.ud-red-7 .site-foot a:hover,
body.ud-red-7 .site-foot a:focus-visible {
  color: #CFCFCF;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-bottom: none;
}

@media (max-width: 768px) {
  body.ud-red-7 .page {
    padding-bottom: 56px; /* 36px band + 20px gap */
  }
  body.ud-red-7 .site-foot {
    height: 36px;
    font-size: 12px;
    line-height: 12px;
    bottom: 0;
  }
  body.ud-red-7 .site-foot-sep {
    height: 10px;
    margin: 0 11px;
  }
}

/* ud-red-8a: footer type left-aligned to the form's left edge at all widths.
   Same 24px/16px page gutter and 520px max-width as .form-wrap. */
body.ud-red-8a .site-foot {
  justify-content: stretch;
  padding: 0 24px;
}

body.ud-red-8a .site-foot-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 520px) {
  body.ud-red-8a .site-foot {
    padding: 0 16px;
  }
}

/* ud-red-8b: footer type left-aligned to the page edge, with comfortable padding. */
body.ud-red-8b .site-foot {
  justify-content: flex-start;
  padding: 0 32px;
}

@media (max-width: 520px) {
  body.ud-red-8b .site-foot {
    padding: 0 16px;
  }
}

/* ========== ud-red-9 footer alternatives ========== */

/* 9a — one strip: legal left, UniSource block right, in a taller black band. */
body.ud-red-9a .page {
  padding-bottom: 70px;
}

body.ud-red-9a .site-foot {
  height: 54px;
  justify-content: space-between;
  padding: 0 32px;
}

body.ud-red-9a .site-foot-legal {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.ud-red-9a .ud-red {
  margin-top: 0;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  body.ud-red-9a .site-foot {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px 14px;
  }
  body.ud-red-9a .ud-red {
    align-self: flex-end;
  }
  body.ud-red-9a .page {
    padding-bottom: 110px;
  }
}

/* 9b — no band: tiny legal line under Submit, left with the form;
   red block stays alone at the bottom center. */
body.ud-red-9b .page {
  padding-bottom: 36px;
}

body.ud-red-9b .site-legal {
  display: flex;
  align-items: center;
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0.03em;
  color: #BDBDBD;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body.ud-red-9b .site-legal .site-foot-copy,
body.ud-red-9b .site-legal a {
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

body.ud-red-9b .site-legal .site-foot-sep {
  display: block;
  width: 1px;
  height: 10px;
  margin: 0 11px;
  padding: 0;
  background: #BDBDBD;
  opacity: 0.7;
  flex: 0 0 auto;
  letter-spacing: 0;
}

body.ud-red-9b .site-legal a:hover,
body.ud-red-9b .site-legal a:focus-visible {
  color: #BDBDBD;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-bottom: none;
}

/* 9c — whisper: same centered black band, barely-there dark gray type. */
body.ud-red-9c .site-foot,
body.ud-red-9c .site-foot-copy,
body.ud-red-9c .site-foot a {
  color: #6E6E6E;
}

body.ud-red-9c .site-foot-sep {
  background: #6E6E6E;
}

body.ud-red-9c .site-foot a:hover,
body.ud-red-9c .site-foot a:focus-visible {
  color: #8A8A8A;
  border-bottom: none;
}

/* ========== ud-red-10 ========== */
/* Bounce entrance on the red UniSource block (two bounces, Nov 20).
   Name, dash, and form timing stay as they are.
   Sequence:
     1.8–3.0s  block: 1200ms, rises in and overshoots ~12px, lands,
               bounces again ~6px, lands and settles
     3.2–3.9s  triangle nudge, once, after it lands */

@media (prefers-reduced-motion: no-preference) {
  body.ud-red-10 .ud-red-4 {
    /* Entrance (ud-red-bounce2): 1.8–3.0s, once, fill both.
       Repeat (ud-red-bounce-repeat): first at 23s (20s after the
       entrance settles), then every 20s. Same 1.2s two-bounce path
       as the entrance (16 → -12 → 0 → -6 → 0 → -1 → 0). The 20s
       cycle is linear so the first 6% is exactly 1.2s; fill none so
       it cannot override the entrance before 23s. */
    animation-name: ud-red-bounce2, ud-red-bounce-repeat;
    animation-duration: 1200ms, 20s;
    animation-timing-function: ease, linear;
    animation-delay: 1800ms, 23s;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
  }
  body.ud-red-10 .ud-red-4 .ud-tri {
    /* Entrance nudge 3.2–3.9s, once; repeat nudge on the same 20s
       clock, 24.4–25.1s (same 0.2s gap after the bounce lands, same
       700ms / 4px nudge). Fill none so hover translateX still works
       once a cycle is idle — and hover clears the animation below. */
    animation-name: ud-red-tri-nudge, ud-red-tri-nudge-repeat;
    animation-duration: 700ms, 20s;
    animation-timing-function: ease-in-out, linear;
    animation-delay: 3200ms, 23s;
    animation-fill-mode: none, none;
    animation-iteration-count: 1, infinite;
  }
  /* Hover/focus must beat the infinite nudge, which would otherwise
     hold transform and block the existing arrow slide. */
  body.ud-red-10 .ud-red:hover .ud-tri,
  body.ud-red-10 .ud-red:focus-visible .ud-tri {
    animation: none;
    transform: translateX(3px);
  }
}

@keyframes ud-red-bounce2 {
  0% {
    opacity: 0;
    transform: translateY(16px);
    animation-timing-function: cubic-bezier(0.22, 0.8, 0.36, 1);
  }
  10% {
    opacity: 1;
  }
  32% {
    opacity: 1;
    transform: translateY(-12px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  52% {
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
  }
  68% {
    opacity: 1;
    transform: translateY(-6px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  84% {
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
  }
  92% {
    opacity: 1;
    transform: translateY(-1px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nov 21: repeat the entrance two-bounce every 20s (first at 23s).
   6% of 20s = 1.2s, same path and easing as ud-red-bounce2. */
@keyframes ud-red-bounce-repeat {
  0% { /* 0s: start from rest (box is already visible, so no 16px drop) */
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.22, 0.8, 0.36, 1);
  }
  1.92% { /* 0.384s: -12px */
    transform: translateY(-12px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  3.12% { /* 0.624s: land */
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
  }
  4.08% { /* 0.816s: -6px */
    transform: translateY(-6px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  5.04% { /* 1.008s: land */
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
  }
  5.52% { /* 1.104s: -1px */
    transform: translateY(-1px);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  6%, 100% { /* 1.20s–20s: rest */
    transform: translateY(0);
  }
}

@keyframes ud-red-tri-nudge-repeat {
  /* Same 700ms / 4px nudge as the entrance, starting 0.2s after the bounce lands:
     1.4s / 20s = 7%, duration 0.7s → 10.5%. Peak at 45% of the nudge = 8.575%. */
  0%, 7% {
    transform: translateX(0);
  }
  8.575% {
    transform: translateX(4px);
  }
  10.5%, 100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ud-red-10 .ud-red-4 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  body.ud-red-10 .ud-red-4 .ud-tri {
    animation: none;
    transform: none;
  }
}

/* ========== Production additions ========== */
/* Turnstile runs invisibly; the container only takes space if Cloudflare
   ever needs to show a check. */
.ts-wrap { margin: 0; }
.ts-wrap iframe { margin: 0 0 12px; }

/* Quiet error line under the Submit button, same voice as the thank-you. */
.form-msg {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
  text-shadow: none;
}
.form-msg[hidden] { display: none; }
form[aria-busy="true"] button[type="submit"] { opacity: 0.75; cursor: progress; }

/* Plain text pages (privacy, 404, form result): black page, same type. */
body.doc { background: #000; color: #E6E6E6; }
body.doc .page { justify-content: flex-start; }
/* Nov 22: same top offset as the home page (body.ud-red-10 .page). */
body.doc .page { padding-top: clamp(28px, 8.5vh, 76px); }
@media (max-width: 520px) {
  body.doc .page { padding-top: clamp(28px, 5.7vh, 48px); }
}
body.doc .doc-logo {
  display: block;
  margin: 0 auto 28px;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}
/* Size comes from body.ud-red-5 .logo-c .logo-mark (same as home). */
body.doc .doc-logo .logo-mark {
  display: block;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
body.doc .doc-body { width: 100%; max-width: 640px; font-size: 16px; line-height: 1.65; }
body.doc .doc-body h1 { font-size: 24px; font-weight: 500; color: #fff; margin: 0 0 16px; letter-spacing: 0.01em; }
body.doc .doc-body h2 { font-size: 17px; font-weight: 500; color: #fff; margin: 24px 0 6px; }
body.doc .doc-body p { margin: 0 0 12px; }
body.doc .doc-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.doc .doc-body a:hover, body.doc .doc-body a:focus-visible { color: #F0F0F0; }
body.doc .doc-body .muted { color: #9A9A9A; font-size: 14px; }
body.doc .site-foot { animation: none; }

/* Nov 20: name + form sit a little lower. +48px at 1440x900 (28 -> 76px),
   +20px at 390x844 (28 -> 48px). Scales with viewport height and never goes
   below the original 28px, so short screens don't start scrolling. The red
   block stays pinned to the bottom (margin-top: auto). */
body.ud-red-10 .page {
  padding-top: clamp(28px, 8.5vh, 76px);
}
@media (max-width: 520px) {
  body.ud-red-10 .page {
    padding-top: clamp(28px, 5.7vh, 48px);
  }
}

/* Nov 20: a little more air between the red dash and the form.
   Logo bottom margin 18 -> 32px on desktop (+14), 16 -> 25px on phones (+9). */
body.ud-red-10 h1.logo {
  margin-bottom: 32px;
}
@media (max-width: 520px) {
  body.ud-red-10 h1.logo {
    margin-bottom: 25px;
  }
}


/* Nov 21: keep the black footer flush with the bottom of the screen on
   iPad/iPhone Safari. 100vh is Safari's large viewport (toolbars hidden),
   so min-height: 100vh on .page can make the document a little taller than
   the visible area and allow a short scroll. After that scroll — or when
   the toolbar hides and the visual viewport grows — a strip of the fixed
   background photo can show below the footer. Use 100dvh (100vh fallback)
   so the page matches the visible height, and extend the black footer band
   downward so the photo cannot appear under it. */
html, body {
  background: #000;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
}

body.ud-red-6 .site-foot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000;
  pointer-events: none;
}

/* Nov 21: close a 1 device-pixel hairline on iPad Safari. Subpixel
   rounding (DPR 2 / fractional zoom, dynamic toolbar) can leave a
   sliver at the bottom of the visual viewport that the footer and
   its ::after (top: 100%) do not reliably cover — Safari can clip
   overflow of a position:fixed footer at the viewport edge, so a
   band that starts exactly at the footer’s bottom can miss the last
   device pixel. The photo layer (.bg { position: fixed; inset: 0 })
   then shows through. Do not shrink .bg (that would recrop
   background-size: cover). Clip the last 3px of the photo instead
   so html/body’s #000 shows through — those 3px sit under the 39px
   footer — and extend the footer’s black downward with a solid
   box-shadow. A short .bg::after bar is a fallback if clip-path
   is ignored. */
.bg {
  -webkit-clip-path: inset(0 0 3px 0);
  clip-path: inset(0 0 3px 0);
}

.bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: #000;
  pointer-events: none;
  z-index: 2;
}

body.ud-red-6 .site-foot {
  overflow: visible;
  box-shadow: 0 16px 0 0 #000;
}


/* ========== Nov 24 preview: 404 + print card ========== */

/* 404: one dry line under the same logo, no button, black and white. */
body.doc-404 .doc-body {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}
body.doc-404 .doc-body h1 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 28px;
}
body.doc-404 .doc-body p {
  margin: 0;
}
body.doc-404 .doc-body a {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
body.doc-404 .doc-body a:hover,
body.doc-404 .doc-body a:focus-visible {
  color: #F0F0F0;
}

/* Print-only line on the home-page card. Hidden on screen. */
.print-note {
  display: none;
}

/* Home page as a one-page Letter card: name, site address, signature.
   The live home page has no intro paragraph and does not publish an
   email or phone, so those are not invented here. */
@page {
  size: letter;
  margin: 0.7in 0.85in;
}

@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    min-height: 0 !important;
    /* Content box of a Letter page with 0.7in margins is 9.6in tall. */
    height: 9.5in !important;
    max-height: 9.5in !important;
    overflow: hidden !important;
  }

  body {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .bg,
  .bg-photo,
  .bg::before,
  .bg::after,
  form,
  .ts-wrap,
  .thanks,
  .ud-red,
  .form-msg,
  .hp,
  .statcounter,
  noscript {
    display: none !important;
  }

  .page {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.35in 0 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff !important;
    overflow: hidden !important;
  }

  body.ud-red-5 .logo-c .logo-mark,
  body.ud-red-10 h1.logo,
  h1.logo,
  .logo {
    margin: 0 auto 18px !important;
    width: min(325.16px, 70%) !important;
  }

  .logo-mark g,
  .logo-word,
  .logo-last,
  .logo-mark path {
    fill: #000 !important;
  }

  /* Quiet site address in place of the missing on-page intro. */
  body.stark h1.logo::after {
    content: "johnplumitis.com";
    display: block;
    margin-top: 16px;
    font-family: "Outfit", "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.4;
    color: #000;
    text-align: center;
  }

  .form-wrap {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: auto auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }

  .print-note {
    display: block !important;
    margin: 0 auto 0.22in;
    font-family: "Outfit", "Inter", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #000;
    text-align: center;
  }

  .thanks-sig,
  body.is-thanks .thanks-sig {
    display: block !important;
    width: 210px !important;
    margin: 0 auto !important;
  }

  /* Mask strokes stay white so the mask still reveals the ink.
     Visible fill turns black for paper. Animation is forced complete. */
  .thanks-sig .sig-mask-stroke,
  body.is-thanks .thanks-sig .sig-mask-stroke,
  body.is-thanks .thanks-sig-real3 .sig-s1,
  body.is-thanks .thanks-sig-real3 .sig-s2,
  body.is-thanks .thanks-sig-real3 .sig-s3 {
    animation: none !important;
    stroke-dasharray: 1.04 !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    stroke: #fff !important;
  }

  .thanks-sig-svg g path {
    fill: #000 !important;
    fill-opacity: 1 !important;
  }

  .site-foot,
  body.ud-red-5 .site-foot,
  body.ud-red-6 .site-foot,
  body.ud-red-7 .site-foot,
  body.ud-red-9c .site-foot {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 auto 0.05in !important;
    padding: 0 !important;
    color: #000 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .site-foot::after,
  body.ud-red-6 .site-foot::after {
    content: none !important;
    display: none !important;
  }

  .site-foot-copy,
  body.ud-red-7 .site-foot-copy,
  body.ud-red-9c .site-foot-copy {
    color: #000 !important;
  }

  .site-foot-sep,
  .site-foot a {
    display: none !important;
  }

  a[href]::after {
    content: none !important;
  }
}
