/* after40 (Indy 2026-10-24 6:23 PM PT): "The OC" gets X'd out before it poofs into "Orange County", as a visual setup for
   the "don't call it that" meme. oc.js adds .oc-x inside .oc-text (absolute, so no layout shift) with two tapered blade
   strokes drawn here in CSS (no artwork): swipe one top-left to bottom-right (140ms, ease-out, bright leading glint),
   a 70ms beat, swipe two top-right to bottom-left (140ms); each lands with a tiny shake; the word dims under a red X
   for 450ms, then the existing poof takes the X away with the word. Reduced motion: the whole X fades in (120ms) and
   holds, no slash motion or shake. JS sets --len (stroke length) and --ang (diagonal angle) from the text box. */
html[data-theme="light"] { --oc-x: #d42a2f; --oc-x-tail: rgba(212, 42, 47, 0); --oc-x-glow: rgba(212, 42, 47, 0.35); --oc-x-edge: #fff6e8; }
html[data-theme="dark"]  { --oc-x: #ff5d57; --oc-x-tail: rgba(255, 93, 87, 0); --oc-x-glow: rgba(255, 93, 87, 0.5); --oc-x-edge: #ffffff; }
.oc-x { position: absolute; left: -0.14em; right: -0.14em; top: calc(50% - 0.64em); height: 1.24em;
  pointer-events: none; z-index: 2; display: block; }
.oc-slash { position: absolute; left: 50%; top: 50%; display: block; width: var(--len, 3em); height: 0.2em;
  margin: -0.1em 0 0 calc(var(--len, 3em) / -2); transform: rotate(var(--ang, 20deg));
  clip-path: inset(-60% 100% -60% 0); animation: oc-cut 140ms cubic-bezier(0.15, 0.85, 0.25, 1) var(--at, 0ms) both; }
.oc-slash--2 { transform: rotate(calc(180deg - var(--ang, 20deg))); --at: 210ms; }
.oc-slash i { position: absolute; inset: 0; display: block;
  background: linear-gradient(90deg, var(--oc-x-tail) 0%, var(--oc-x) 22%, var(--oc-x) 100%);
  clip-path: polygon(0 50%, 30% 22%, 74% 0, 100% 50%, 74% 100%, 30% 78%);
  filter: drop-shadow(0 0 1.5px var(--oc-x-glow)); }
.oc-slash b { position: absolute; top: 50%; left: 0; display: block; width: 0.8em; height: 0.34em; margin: -0.17em 0 0 -0.7em;
  border-radius: 50%; background: radial-gradient(ellipse at 75% 50%, var(--oc-x-edge) 0%, var(--oc-x-edge) 18%, transparent 70%);
  opacity: 0; animation: oc-cut-edge 140ms cubic-bezier(0.15, 0.85, 0.25, 1) var(--at, 0ms) both,
                         oc-cut-edge-off 140ms linear calc(var(--at, 0ms) + 140ms) forwards; }
@keyframes oc-cut { from { clip-path: inset(-60% 100% -60% 0); } to { clip-path: inset(-60% 0 -60% 0); } }
@keyframes oc-cut-edge { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes oc-cut-edge-off { from { left: 100%; opacity: 1; } to { left: 100%; opacity: 0; } }
/* the word while it's being crossed out: no hover glint/lift, a tiny hit-shake per swipe, then dimmed under the X */
.contact.oc:not(.oc-is-oc) .oc-btn.oc-xed .oc-text,
.contact.oc:not(.oc-is-oc) .oc-btn.oc-xed:hover .oc-text,
.contact.oc:not(.oc-is-oc) .oc-btn.oc-xed:focus-visible .oc-text {
  color: color-mix(in srgb, currentColor 52%, transparent); background: none; transform: none; filter: none;
  transition: color 0.2s linear; }
.contact.oc .oc-btn.oc-xing .oc-text,
.contact.oc .oc-btn.oc-xing:hover .oc-text,
.contact.oc .oc-btn.oc-xing:focus-visible .oc-text {
  animation: oc-hit 110ms linear 130ms both, oc-hit-2 110ms linear 340ms both; }
@keyframes oc-hit   { 0% { transform: none; } 25% { transform: translate(1.2px, -0.6px); } 55% { transform: translate(-1px, 0.7px); } 80% { transform: translate(0.5px, -0.3px); } 100% { transform: none; } }
@keyframes oc-hit-2 { 0% { transform: none; } 25% { transform: translate(-1.2px, -0.6px); } 55% { transform: translate(1px, 0.7px); } 80% { transform: translate(-0.5px, -0.3px); } 100% { transform: none; } }
/* reduced motion: a static X fades in and holds */
.oc-x.is-still { animation: oc-x-fade 120ms linear both; }
.oc-x.is-still .oc-slash { clip-path: none; animation: none; }
.oc-x.is-still .oc-slash b { display: none; }
@keyframes oc-x-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .oc-slash { clip-path: none; animation: none; }
  .oc-slash b { display: none; }
  .contact.oc .oc-btn.oc-xing .oc-text { animation: none; }
}
@media (forced-colors: active) { .oc-slash i { background: CanvasText; filter: none; } }
