/* "Why we built it" on the about page: taped-together windows become one Ulmero window (assets/art/about-taped.js). */
.has-art-taped > .container { max-width: var(--container) !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(48px, 5vw, 96px); align-items: start; }
.has-art-taped > .container > * { grid-column: 1; }
.has-art-taped > .container > .ta-stage { grid-column: 2; grid-row: 1 / span 20; padding-top: 6px; }
@media (max-width: 900px) { .has-art-taped > .container { display: block; max-width: 860px !important; } .ta-stage { display: none; } }

.ta-label { margin: 0 0 22px; font-size: 16.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--turquoise); }
.ta-scene { position: relative; height: 520px; transition: opacity 0.6s ease; }
.ta-scene.fade { opacity: 0; }
.ta-scene p { margin: 0; }
.ta-scene svg { display: block; }
.ta-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The one Ulmero window (behind, until the windows settle into it). */
.ta-frame { position: absolute; inset: 0; border-radius: 18px; border: 1px solid var(--accent); background: var(--panel);
  box-shadow: 0 0 56px rgba(132, 181, 210, 0.14); opacity: 0; transform: scale(0.97); transition: opacity 0.7s ease, transform 0.9s var(--ease); }
.ta-top { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise); }
.ta-top img { width: 18px; height: auto; }
.ta-who { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.ta-who b { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ta-who span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ta-thread { position: absolute; left: calc(3% + 26px); top: 149px; width: 2px; height: 320px; margin-left: -1px; background: var(--turquoise);
  transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.ta-scene.neat .ta-frame { opacity: 1; transform: none; }
.ta-scene.joined .ta-thread { transform: none; }

/* The mismatched windows, each with its own look. */
.ta-win { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); transform: rotate(var(--r));
  border-radius: var(--rad, 12px); border: 1px solid var(--edge, rgba(241, 238, 231, 0.16)); background: var(--bg, #22211f);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42); overflow: hidden; z-index: calc(2 + var(--i));
  transition: left 0.9s var(--ease), top 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease), transform 0.9s var(--ease),
    border-radius 0.9s ease, background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  transition-delay: calc(var(--i) * 0.16s); }
.ta-chat  { --x: 1%;  --y: 22px;  --w: 45%; --h: 150px; --r: -5deg;  --bg: #24272c; --rad: 20px; }
.ta-app   { --x: 50%; --y: 6px;   --w: 47%; --h: 166px; --r: 4deg;   --bg: #2b2535; --rad: 6px; --edge: rgba(190, 160, 240, 0.35); }
.ta-shop  { --x: 5%;  --y: 192px; --w: 41%; --h: 122px; --r: 3deg;   --bg: #1f2720; }
.ta-xero  { --x: 48%; --y: 196px; --w: 37%; --h: 118px; --r: -3.5deg; --bg: #1c2631; --rad: 4px; }
.ta-mail  { --x: 0%;  --y: 338px; --w: 50%; --h: 140px; --r: -2deg;  --bg: #f1eee7; --edge: rgba(0, 0, 0, 0.2); --rad: 8px; }
.ta-sheet { --x: 47%; --y: 322px; --w: 52%; --h: 168px; --r: 4.5deg; --bg: #e8eee8; --edge: rgba(0, 0, 0, 0.2); --rad: 3px; }

.ta-messy { position: absolute; inset: 0; transition: opacity 0.3s ease; transition-delay: calc(var(--i) * 0.16s); }
.ta-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgba(241, 238, 231, 0.1);
  font-size: 13px; font-weight: 600; color: #ddd8cd; white-space: nowrap; }
.ta-bar svg { width: 16px; height: 16px; flex: none; }
.ta-bar em { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(190, 160, 240, 0.2); font-style: normal; font-size: 13px; color: #d9c8f6; }
.ta-body { padding: 12px 14px; font-size: 14px; line-height: 1.35; color: #ddd8cd; }
.ta-mail .ta-bar, .ta-sheet .ta-bar { color: #3a3833; border-bottom-color: rgba(0, 0, 0, 0.1); }
.ta-mail .ta-body, .ta-sheet .ta-body { color: #2b2a27; }
.ta-sheet .ta-bar { background: #d6e3d7; }
.ta-shop .ta-bar { background: rgba(122, 181, 92, 0.16); }
.ta-xero .ta-bar { background: rgba(19, 181, 234, 0.14); }
.ta-app .ta-bar { background: linear-gradient(90deg, rgba(150, 110, 230, 0.32), rgba(230, 120, 190, 0.18)); }

.ta-bub { width: max-content; max-width: 92%; padding: 7px 11px; border-radius: 14px; margin-bottom: 8px !important; }
.ta-them { background: rgba(241, 238, 231, 0.1); border-bottom-left-radius: 4px; }
.ta-me { margin-left: auto !important; background: rgba(88, 150, 189, 0.3); border-bottom-right-radius: 4px; }
.ta-field { padding: 5px 9px; margin-bottom: 7px !important; border: 1px dashed rgba(241, 238, 231, 0.25); border-radius: 4px; }
.ta-btn { display: inline-block; padding: 4px 12px; border-radius: 99px; background: linear-gradient(90deg, #8f6ae0, #d872b6); color: #fff; font-weight: 600; }
.ta-big { font-size: 17px; font-weight: 600; color: var(--ink); }
.ta-small { margin-top: 4px !important; color: #a8a399; }
.ta-mailrow { display: flex; flex-direction: column; padding: 4px 0 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.ta-mailrow b { font-weight: 700; }
.ta-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr; border-top: 1px solid #b9c6ba; border-left: 1px solid #b9c6ba; }
.ta-grid span { padding: 4px 7px; border-right: 1px solid #b9c6ba; border-bottom: 1px solid #b9c6ba; white-space: nowrap; overflow: hidden; }
.ta-grid span:nth-child(-n+3) { background: #d6e3d7; font-weight: 600; }

/* The line each window becomes. */
.ta-row { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 10px; opacity: 0;
  transition: opacity 0.4s ease; transition-delay: calc(var(--i) * 0.16s + 0.45s); white-space: nowrap; }
.ta-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--muted); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.ta-dot svg { width: 16px; height: 16px; }
.ta-src { flex: none; width: 116px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ta-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; color: var(--ink); }
.ta-when { flex: none; font-size: 13px; color: var(--faint); }

.ta-scene.neat .ta-win { left: 3%; width: 94%; height: 58px; top: calc(120px + var(--i) * 64px); transform: none; border-radius: 10px;
  background: rgba(241, 238, 231, 0.025); border-color: var(--line); box-shadow: none; }
.ta-scene.neat .ta-messy { opacity: 0; }
.ta-scene.neat .ta-row { opacity: 1; }
.ta-scene.joined .ta-dot { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(132, 181, 210, 0.14); transition-delay: calc(var(--i) * 0.25s); }

/* Masking tape and the sticky note. */
.ta-tape { position: absolute; z-index: 20; width: 92px; height: 28px; left: var(--tx); top: var(--ty); pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(232, 218, 178, 0.86) 0 6px, rgba(222, 206, 162, 0.86) 6px 9px);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 9%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 91%, 4% 100%, 0 92%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); opacity: 0; transform: translate(-50%, -50%) rotate(var(--tr)) scale(1.35); transform-origin: 0 50%; }
.ta-tape.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--tr)); transition: opacity 0.12s ease, transform 0.18s cubic-bezier(.3, 1.6, .5, 1); }
.ta-tape.peel { animation: ta-peel 0.75s ease-in forwards; }
@keyframes ta-peel {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--tr)); }
  35% { opacity: 1; transform: translate(-50%, -58%) rotate(calc(var(--tr) - 10deg)) scale(1.06, 0.92); }
  100% { opacity: 0; transform: translate(-10%, -260%) rotate(calc(var(--tr) - 50deg)) scale(0.9); } }
.ta-t0 { --tx: 47%; --ty: 44px;  --tr: -32deg; }
.ta-t1 { --tx: 20%; --ty: 176px; --tr: 10deg; }
.ta-t2 { --tx: 66%; --ty: 178px; --tr: -6deg; }
.ta-t3 { --tx: 46%; --ty: 262px; --tr: 82deg; }
.ta-t4 { --tx: 14%; --ty: 326px; --tr: -12deg; }
.ta-t5 { --tx: 84%; --ty: 318px; --tr: 14deg; }
.ta-t6 { --tx: 48%; --ty: 418px; --tr: 76deg; }

.ta-note { position: absolute; z-index: 21; left: 77%; top: 146px; width: 142px; padding: 14px 14px 18px; background: #f2dc7a; color: #3b3418;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 15px; line-height: 1.3;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4); transform: rotate(7deg) translateY(-14px); opacity: 0; transform-origin: 50% 0; }
.ta-note.on { opacity: 1; transform: rotate(7deg); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.3, 1.5, .5, 1); }
.ta-note.fall { opacity: 0; transform: translate(30px, 140px) rotate(28deg); transition: opacity 0.7s ease 0.15s, transform 0.85s ease-in; }

.ta-scene.snap, .ta-scene.snap * { transition: none !important; animation: none !important; }
.ta-scene.still .ta-tape, .ta-scene.still .ta-note { display: none; }
@media (prefers-reduced-motion: reduce) { .ta-scene, .ta-scene * { transition: none !important; animation: none !important; } }
