@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

.caps {
  --caps-space: clamp(2.5rem, 5vw, 4.5rem);
  --caps-type: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  padding-block: clamp(58px, 5.35vw, 88px) clamp(48px, 5vw, 80px);
}
.caps__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: var(--s5) var(--s8); margin-bottom: var(--caps-space);
  font-family: var(--caps-type);
}
.caps__experience {
  margin-bottom: clamp(.45rem, .7vw, .75rem);
  color: #d5d4d1;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
}
.caps__head h2 {
  font-size: clamp(2.35rem, 3.7vw, 3.9rem); font-weight: 540;
  line-height: 1.06; letter-spacing: -.028em;
}
.caps__intro { justify-self: end; max-width: 40ch; }
.caps__head .lede {
  color: var(--silver);
  font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.55; text-wrap: pretty;
}
.caps__credits {
  display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 2rem);
  margin: 1.15rem 0 0; padding: 0; list-style: none;
}
.caps__credits li {
  color: var(--silver); font-size: .9375rem; line-height: 1.35; text-wrap: balance;
}
.caps__credits li + li {
  padding-inline-start: clamp(1rem, 2vw, 2rem); border-inline-start: 1px solid var(--rule);
}
.caps__credits strong {
  display: block; margin-bottom: .25rem; color: var(--ink);
  font-size: clamp(1.75rem, 2.25vw, 2.4rem); font-weight: 560;
  line-height: 1; letter-spacing: -.025em;
}

.caps__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 1.8vw, 1.5rem); }
.caps__grid--supporting {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 2.5vw, 2.75rem);
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: clamp(1.25rem, 1.9vw, 2rem);
}
.tile { --box-h: clamp(11rem, 15vw, 15.5rem); display: flex; flex-direction: column; min-width: 0; }
.tile--edit { grid-column: span 7; --box-h: clamp(14rem, 25vw, 23rem); }
.tile--web { grid-column: span 5; --box-h: clamp(14rem, 25vw, 23rem); }

.tile__box {
  --pad: clamp(0.75rem, 1.6vw, 1.4rem);
  position: relative; height: var(--box-h);
  border: 1px solid rgb(255 255 255 / 12%);
  border-bottom-color: rgb(255 255 255 / 6%);
  border-radius: clamp(16px, 1.65vw, 26px);
  background:
    radial-gradient(ellipse at 15% 0%, rgb(255 255 255 / 5%), transparent 65%),
    linear-gradient(155deg, #212121, #191919 48%, #121212);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 2px 4px rgb(0 0 0 / 52%),
    0 12px 22px -10px rgb(0 0 0 / 78%);
  overflow: hidden; isolation: isolate;
  transition: border-color var(--mid) var(--ease-out);
}
/* A hairline of light along the top edge, like the lip of a screen */
.tile__box::before {
  content: ""; position: absolute; inset: 0 10% auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 18%) 32%, transparent);
}
/* Hover: a beam of light passes across the box */
.tile__box::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
  transform: translateX(-100%);
}
.tile:hover .tile__box { border-color: rgba(255, 255, 255, 0.24); }
.tile:hover .tile__box::after { transform: translateX(100%); transition: transform 1.1s var(--ease-out); }
.tile__name {
  margin-top: clamp(.75rem, 1.2vw, 1.125rem);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: clamp(1.17rem, 1rem + .66vw, 1.7rem); font-weight: 525;
  line-height: 1.14; letter-spacing: -.005em; text-wrap: balance;
}
.tile--edit .tile__name, .tile--web .tile__name {
  font-size: clamp(1.65rem, 1.18rem + 1.35vw, 2.4rem); font-weight: 545;
  line-height: 1.1; letter-spacing: -.015em;
}
.tile__note {
  margin-top: .45rem; max-width: 46ch; color: var(--silver);
  font: 415 clamp(.9375rem, .88rem + .15vw, 1.025rem)/1.55 var(--caps-type);
  text-wrap: pretty;
}

.caps__traits {
  margin-top: var(--caps-space);
  font-family: var(--caps-type); font-size: clamp(1.7rem,3vw,3.25rem);
  font-weight: 445; line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
.caps__traits span { transition: opacity 1s var(--ease-out), color 1s var(--ease-out); }
.js .caps__traits span { opacity: 0.18; }
.js .caps__traits.is-on span { opacity: 1; }
.caps__traits.is-on span:nth-child(2) { transition-delay: 0.35s; }
.caps__traits.is-on span:nth-child(3) { transition-delay: 0.7s; }
.caps__traits.is-on span:nth-child(4) { transition-delay: 1.05s; }

/* ----- Shared SVG vocabulary ----- */
/* The drawing always fits inside its box (letterboxed, never cropped) */
.tile__box > .anim {
  position: absolute; left: var(--pad); top: var(--pad);
  width: calc(100% - var(--pad) * 2); height: calc(100% - var(--pad) * 2);
  overflow: visible;
}
.anim .ln { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.anim .ln.strong { stroke: rgba(255, 255, 255, 0.92); stroke-width: 1.7; }
.anim .dim, .anim .dim line, .anim .dim circle { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.anim .dim-strong { stroke: rgba(255, 255, 255, 0.3); }
.anim .dashed { stroke-dasharray: 3 4; }
.anim .handle { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.anim .fill { fill: rgba(255, 255, 255, 0.93); }
.anim .soft { fill: rgba(255, 255, 255, 0.035); }
.anim .soft-2 { fill: rgba(255, 255, 255, 0.08); }
.anim .ln-dim-fill { fill: rgba(255, 255, 255, 0.26); }
.anim .ink { fill: #090909; }
.anim .halo { fill: rgba(255, 255, 255, 0.22); }
.anim .bars { fill: #030303; }
.anim .glow { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.75)); }
.anim text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; fill: rgba(255, 255, 255, 0.55); }
.anim .ring { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.anim .cursor { fill: #fff; stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
/* Animations run only while their box is on screen (JS adds .is-on) */
.tile:not(.is-on) .anim, .tile:not(.is-on) .anim * { animation-play-state: paused !important; }

/* ----- 1 Â· Video editing (8 s loop) ----- */
.anim-edit .tc { font-size: 10px; fill: rgba(255, 255, 255, 0.72); }
.anim-edit .lbl text { fill: rgba(255, 255, 255, 0.4); }
.anim-edit .clip { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.anim-edit .clip-t1, .anim-edit .clip-t2 { fill: rgba(255, 255, 255, 0.04); stroke-dasharray: 2 3; }
.anim-edit .clip-t1 { animation: edit-t1 8s steps(1) infinite; }
.anim-edit .clip-t2 { animation: edit-t2 8s steps(1) infinite; }
@keyframes edit-t1 { 0% { fill: rgba(255,255,255,0.04); } 25.8% { fill: rgba(255,255,255,0.32); } 42.7% { fill: rgba(255,255,255,0.04); } }
@keyframes edit-t2 { 0% { fill: rgba(255,255,255,0.04); } 56.8% { fill: rgba(255,255,255,0.32); } 81% { fill: rgba(255,255,255,0.04); } }
.anim-edit .wave { stroke: rgba(255, 255, 255, 0.42); stroke-width: 2.4; }
.anim-edit .playhead { animation: playhead 8s linear infinite; }
.anim-edit .playhead line { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.anim-edit .playhead path { fill: #fff; }
.anim-edit .playhead { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }
@keyframes playhead { from { transform: translateX(48px); } to { transform: translateX(544px); } }
.anim-edit .shot { opacity: 0; }
.anim-edit .shot-1 { animation: shot-1 8s steps(1) infinite; }
.anim-edit .shot-2 { animation: shot-2 8s steps(1) infinite; }
.anim-edit .shot-3 { animation: shot-3 8s steps(1) infinite; }
.anim-edit .shot-4 { animation: shot-4 8s steps(1) infinite; }
@keyframes shot-1 { 0% { opacity: 1; } 22.2% { opacity: 0; } }
@keyframes shot-2 { 0% { opacity: 0; } 22.2% { opacity: 1; } 48.8% { opacity: 0; } }
@keyframes shot-3 { 0% { opacity: 0; } 48.8% { opacity: 1; } 77% { opacity: 0; } }
@keyframes shot-4 { 0% { opacity: 0; } 77% { opacity: 1; } }
.anim-edit .cut { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; filter: drop-shadow(0 0 4px #fff); animation: cut-flash 8s linear infinite; }
@keyframes cut-flash { 0%, 61% { opacity: 0; } 62% { opacity: 1; } 72%, 100% { opacity: 0; } }

/* ----- 2 Â· Web development (7 s loop) ----- */
.anim-web .w { opacity: 0; }
.anim-web .w-nav { animation: w-nav 7s var(--ease-out) infinite; }
.anim-web .w-h1 { animation: w-h1 7s var(--ease-out) infinite; }
.anim-web .w-p { animation: w-p 7s var(--ease-out) infinite; }
.anim-web .w-btn { animation: w-btn 7s var(--ease-out) infinite; }
.anim-web .w-img { animation: w-img 7s var(--ease-out) infinite; }
.anim-web .w-c1 { animation: w-c1 7s var(--ease-out) infinite; }
.anim-web .w-c2 { animation: w-c2 7s var(--ease-out) infinite; }
.anim-web .w-c3 { animation: w-c3 7s var(--ease-out) infinite; }
@keyframes w-nav { 0%, 2% { opacity: 0; transform: translateY(-6px); } 8% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-h1 { 0%, 8% { opacity: 0; transform: translateY(8px); } 14% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-p { 0%, 13% { opacity: 0; transform: translateY(8px); } 19% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-btn { 0%, 18% { opacity: 0; } 24% { opacity: 1; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-img { 0%, 22% { opacity: 0; transform: scale(0.96); } 30% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-c1 { 0%, 30% { opacity: 0; transform: translateY(10px); } 36% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-c2 { 0%, 34% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes w-c3 { 0%, 38% { opacity: 0; transform: translateY(10px); } 44% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
.anim-web .w-img, .anim-web .btn-shape { transform-box: fill-box; transform-origin: center; }
.anim-web .btn-shape { animation: press 7s var(--ease-out) infinite; }
@keyframes press { 0%, 63% { transform: none; } 65% { transform: scale(0.9); } 69%, 100% { transform: none; } }
.anim-web .cursor { animation: web-cursor 7s var(--ease-in-out) infinite; }
@keyframes web-cursor {
  0%, 45% { opacity: 0; transform: translate(384px, 262px); }
  48% { opacity: 1; transform: translate(384px, 262px); }
  62% { opacity: 1; transform: translate(64px, 170px); }
  80% { opacity: 1; transform: translate(64px, 170px); }
  86%, 100% { opacity: 0; transform: translate(64px, 170px); }
}
.anim-web .ring { animation: ring 7s var(--ease-out) infinite; }
@keyframes ring { 0%, 64% { opacity: 0; transform: scale(0.4); } 66% { opacity: 1; } 76%, 100% { opacity: 0; transform: scale(1.8); } }

/* ----- 3 Â· Motion graphics (2.8 s loop) ----- */
.anim-motion .mg-obj { animation: mg-obj 2.8s cubic-bezier(0.42, 0, 0.45, 1) infinite; }
@keyframes mg-obj { 0% { transform: translateY(168px); } 72%, 100% { transform: translateY(36px); } }
.anim-motion .mg-obj rect { transform-box: fill-box; transform-origin: center; animation: mg-rot 2.8s cubic-bezier(0.42, 0, 0.45, 1) infinite; }
@keyframes mg-rot { 0% { transform: rotate(0deg) scale(0.7); } 72%, 100% { transform: rotate(90deg) scale(1); } }
.anim-motion .scrub { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; animation: scrub 2.8s linear infinite; }
@keyframes scrub { 0% { transform: translateX(0); } 72%, 100% { transform: translateX(168px); } }

/* ----- 4 Â· Graphic design (4.4 s loop) ----- */
.anim-design .gd-path { fill: #fff; fill-opacity: 0; stroke: rgba(255, 255, 255, 0.92); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gd-draw 4.4s var(--ease-in-out) infinite; }
@keyframes gd-draw {
  0% { stroke-dashoffset: 1; fill-opacity: 0; opacity: 1; }
  45% { stroke-dashoffset: 0; fill-opacity: 0; }
  58% { fill-opacity: 0.9; }
  86% { fill-opacity: 0.9; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; fill-opacity: 0.9; opacity: 0; }
}
.anim-design .gd-handles { opacity: 0; animation: gd-handles 4.4s linear infinite; }
@keyframes gd-handles { 0%, 6% { opacity: 0; } 12% { opacity: 1; } 44% { opacity: 1; } 52%, 100% { opacity: 0; } }
.anim-design .anchor { fill: #0b0b0b; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; }
.anim-design .a1 { animation: a1 4.4s steps(1) infinite; }
.anim-design .a2 { animation: a2 4.4s steps(1) infinite; }
@keyframes a1 { 0% { opacity: 1; } 92% { opacity: 0; } }
@keyframes a2 { 0% { opacity: 0; } 22% { opacity: 1; } 92% { opacity: 0; } }
.anim-design .pen { animation: pen 4.4s linear infinite; }
@keyframes pen { 0%, 44% { opacity: 1; } 47%, 100% { opacity: 0; } }
.anim-design .sw { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.anim-design .sw1 { fill: #f2f2f2; animation: sw1 4.4s var(--ease-out) infinite; }
.anim-design .sw2 { fill: #a8a8a8; animation: sw2 4.4s var(--ease-out) infinite; }
.anim-design .sw3 { fill: #5c5c5c; animation: sw3 4.4s var(--ease-out) infinite; }
.anim-design .sw4 { fill: #1e1e1e; animation: sw4 4.4s var(--ease-out) infinite; }
@keyframes sw1 { 0%, 56% { opacity: 0; transform: scale(0.4); } 62% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes sw2 { 0%, 60% { opacity: 0; transform: scale(0.4); } 66% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes sw3 { 0%, 64% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes sw4 { 0%, 68% { opacity: 0; transform: scale(0.4); } 74% { opacity: 1; transform: none; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ----- 5 Â· AI workflows (2.8 s loop, pulses are SVG motion) ----- */
.anim-flow .node rect { fill: #0d0d0d; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.anim-flow .node text { fill: rgba(255, 255, 255, 0.75); }
.anim-flow .n1 rect { animation: node-a 2.8s var(--ease-out) infinite; }
.anim-flow .n2 rect, .anim-flow .n3 rect { animation: node-b 2.8s var(--ease-out) infinite; }
.anim-flow .n4 rect { animation: node-c 2.8s var(--ease-out) infinite; }
@keyframes node-a { 0% { fill: rgba(255,255,255,0.28); stroke: #fff; } 18%, 100% { fill: #0d0d0d; stroke: rgba(255,255,255,0.5); } }
@keyframes node-b { 0%, 29% { fill: #0d0d0d; stroke: rgba(255,255,255,0.5); } 31% { fill: rgba(255,255,255,0.28); stroke: #fff; } 50%, 100% { fill: #0d0d0d; stroke: rgba(255,255,255,0.5); } }
@keyframes node-c { 0%, 74% { fill: #0d0d0d; stroke: rgba(255,255,255,0.5); } 76% { fill: rgba(255,255,255,0.9); stroke: #fff; } 96%, 100% { fill: #0d0d0d; stroke: rgba(255,255,255,0.5); } }
.anim-flow .n4 text { animation: node-c-text 2.8s steps(1) infinite; }
@keyframes node-c-text { 0% { fill: rgba(255,255,255,0.75); } 75% { fill: #0b0b0b; } 90% { fill: rgba(255,255,255,0.75); } }

/* ----- 6 Â· AI fine-tuning (5 s loop) ----- */
.anim-tune .doc { animation: doc-1 5s var(--ease-in-out) infinite; }
.anim-tune .d2 { animation-name: doc-2; }
@keyframes doc-1 { 0%, 4% { opacity: 1; transform: none; } 26% { opacity: 0; transform: translateX(78px) scale(0.5); } 92% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes doc-2 { 0%, 18% { opacity: 1; transform: none; } 40% { opacity: 0; transform: translateX(78px) translateY(-14px) scale(0.5); } 92% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
.anim-tune .doc, .anim-tune .doc * { transform-box: fill-box; }
.anim-tune .net line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.anim-tune .net circle { fill: #fff; animation: net-pulse 5s steps(1) infinite; }
@keyframes net-pulse { 0% { fill: rgba(255,255,255,0.6); } 26% { fill: #fff; } 30% { fill: rgba(255,255,255,0.6); } 40% { fill: #fff; } 44% { fill: rgba(255,255,255,0.6); } }
.anim-tune .ticks { transform-box: view-box; transform-origin: 124px 100px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.anim-tune .loss { fill: none; stroke: #fff; stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: loss 5s var(--ease-out) infinite; }
@keyframes loss { 0%, 30% { stroke-dashoffset: 1; opacity: 1; } 80% { stroke-dashoffset: 0; } 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.anim-tune .end-dot { opacity: 0; animation: end-dot 5s steps(1) infinite; }
@keyframes end-dot { 0% { opacity: 0; } 80% { opacity: 1; } 96% { opacity: 0; } }

/* ----- 7 Â· Google & Meta Ads (4.5 s loop) ----- */
.anim-ads .chip text { fill: rgba(255, 255, 255, 0.7); }
.anim-ads .cursor { animation: ads-cursor 4.5s var(--ease-in-out) infinite; }
@keyframes ads-cursor {
  0% { opacity: 0; transform: translate(150px, 196px); }
  6% { opacity: 1; transform: translate(150px, 196px); }
  28% { opacity: 1; transform: translate(56px, 150px); }
  46% { opacity: 1; transform: translate(56px, 150px); }
  54%, 100% { opacity: 0; transform: translate(56px, 150px); }
}
.anim-ads .ad-cta rect { transform-box: fill-box; transform-origin: center; animation: press-ads 4.5s var(--ease-out) infinite; }
@keyframes press-ads { 0%, 30% { transform: none; } 32% { transform: scale(0.9); } 36%, 100% { transform: none; } }
.anim-ads .ring { animation: ring-ads 4.5s var(--ease-out) infinite; }
@keyframes ring-ads { 0%, 31% { opacity: 0; transform: scale(0.4); } 33% { opacity: 1; } 44%, 100% { opacity: 0; transform: scale(1.9); } }
.anim-ads .bar { fill: rgba(255, 255, 255, 0.85); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.anim-ads .b1 { animation: bar-1 4.5s var(--ease-out) infinite; }
.anim-ads .b2 { animation: bar-2 4.5s var(--ease-out) infinite; }
.anim-ads .b3 { animation: bar-3 4.5s var(--ease-out) infinite; }
.anim-ads .b4 { animation: bar-4 4.5s var(--ease-out) infinite; }
@keyframes bar-1 { 0%, 38% { transform: scaleY(0); } 52% { transform: scaleY(1); } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bar-2 { 0%, 42% { transform: scaleY(0); } 56% { transform: scaleY(1); } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bar-3 { 0%, 46% { transform: scaleY(0); } 60% { transform: scaleY(1); } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bar-4 { 0%, 50% { transform: scaleY(0); } 64% { transform: scaleY(1); } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.anim-ads .trend { fill: none; stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(255,255,255,0.8)); animation: trend 4.5s var(--ease-out) infinite; }
@keyframes trend { 0%, 60% { stroke-dashoffset: 1; opacity: 1; } 80% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ----- 8 Â· Troubleshooting (5 s loop) ----- */
.anim-fix text { font-size: 10px; }
.anim-fix .log text { opacity: 0; }
.anim-fix .err { fill: rgba(255, 255, 255, 0.95); }
.anim-fix .ok { fill: #fff; }
.anim-fix .l1 { animation: log-1 5s steps(1) infinite; }
.anim-fix .l2 { animation: log-2 5s steps(1) infinite; }
.anim-fix .l3 { animation: log-3 5s steps(1) infinite; }
.anim-fix .l4 { animation: log-4 5s steps(1) infinite; }
@keyframes log-1 { 0% { opacity: 0; } 4% { opacity: 1; } 94% { opacity: 0; } }
@keyframes log-2 { 0% { opacity: 0; } 20% { opacity: 1; } 94% { opacity: 0; } }
@keyframes log-3 { 0% { opacity: 0; } 40% { opacity: 1; } 94% { opacity: 0; } }
@keyframes log-4 { 0% { opacity: 0; } 62% { opacity: 1; } 94% { opacity: 0; } }
.anim-fix .caret { fill: rgba(255, 255, 255, 0.8); animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.anim-fix .state { opacity: 0; }
.anim-fix .warn { animation: warn 5s steps(1) infinite; }
@keyframes warn { 0% { opacity: 0; } 20% { opacity: 1; } 26% { opacity: 0.25; } 30% { opacity: 1; } 36% { opacity: 0.25; } 40% { opacity: 1; } 60% { opacity: 0; } }
.anim-fix .ok-state, .anim-fix .state.ok { animation: ok-state 5s steps(1) infinite; }
@keyframes ok-state { 0% { opacity: 0; } 62% { opacity: 1; } 94% { opacity: 0; } }
.anim-fix .scan { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; filter: drop-shadow(0 0 4px #fff); animation: scan 5s var(--ease-in-out) infinite; }
@keyframes scan { 0%, 40% { opacity: 0; transform: translateY(0); } 42% { opacity: 1; } 58% { opacity: 1; transform: translateY(70px); } 60%, 100% { opacity: 0; transform: translateY(70px); } }

/* The narration appears one character at a time, like a voiceover draft. */
.anim-script text {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px; letter-spacing: .02em; fill: #dededb;
}
.anim-script .script-slug { font-size: 10.6px; font-weight: 650; fill: #f0efec; }
.anim-script .script-voice { font-size: 9.5px; fill: #adada9; }
.script-rule, .script-cue { fill: none; stroke: #858580; stroke-width: 1; opacity: .58; }
.script-cue { opacity: .35; }
.script-typing { transform-box: fill-box; animation: script-type 5s steps(21, end) infinite; }
@keyframes script-type {
  0%, 12% { clip-path: inset(-3px 101% -3px -2px) fill-box; }
  70%, 100% { clip-path: inset(-3px -2px -3px -2px) fill-box; }
}
.parcel-label { animation: parcel-label-settle 4.5s var(--ease-out) infinite; }
@keyframes parcel-label-settle {
  0%, 12% { opacity: 0; transform: translate(-9px, -8px); }
  36%, 84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@media (max-width: 1000px) {
  .caps__grid--supporting { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .caps { padding-block: 44px 48px; }
  .caps__head { grid-template-columns: 1fr; gap: .8rem; }
  .caps__intro { justify-self: start; }
  .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
  .tile { --box-h: auto; grid-column: span 1; }
  .tile--edit, .tile--web { grid-column: span 2; }
  .tile__box { aspect-ratio: 1.6; --pad: var(--s3); }
  .tile--edit .tile__box { aspect-ratio: 1.75; }
  .tile--web .tile__box { aspect-ratio: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
.anim *, .anim { animation: none !important; }
  .anim-web .w, .anim-design .sw, .anim-tune .end-dot, .anim-fix .log text, .anim-fix .state.ok { opacity: 1; }
  .anim-design .gd-path { stroke-dashoffset: 0; fill-opacity: 0.9; }
  .anim-tune .loss, .anim-ads .trend { stroke-dashoffset: 0; }
  .anim-ads .bar { transform: none; }
  .anim-edit .shot-3 { opacity: 1; }
  .anim-edit .playhead { transform: translateX(330px); }

.anim-edit .shot-1, .anim-edit .shot-2, .anim-edit .shot-4 { opacity: 0; }
.anim-motion .mg-obj { transform: translateY(36px); }
.anim-design .pen, .anim-flow .pulse { opacity: 0; }
.anim-ads .cursor, .anim-web .cursor, .anim-fix .caret { opacity: 0; }
.caps__traits span { opacity: 1 !important; transition: none; }
.tile .tile__box::after { display:none; }
.anim :is(.pen,.pulse), .anim-motion circle:has(animateMotion) { visibility: hidden; }
}
:is(html[data-motion="off"],html:not(.js)) .anim *, :is(html[data-motion="off"],html:not(.js)) .anim { animation: none !important; }
:is(html[data-motion="off"],html:not(.js)) .anim-web .w, :is(html[data-motion="off"],html:not(.js)) .anim-design .sw, :is(html[data-motion="off"],html:not(.js)) .anim-tune .end-dot, :is(html[data-motion="off"],html:not(.js)) .anim-fix .log text, :is(html[data-motion="off"],html:not(.js)) .anim-fix .state.ok { opacity: 1; }
:is(html[data-motion="off"],html:not(.js)) .anim-design .gd-path { stroke-dashoffset: 0; fill-opacity: 0.9; }
:is(html[data-motion="off"],html:not(.js)) .anim-tune .loss, :is(html[data-motion="off"],html:not(.js)) .anim-ads .trend { stroke-dashoffset: 0; }
:is(html[data-motion="off"],html:not(.js)) .anim-ads .bar { transform: none; }
:is(html[data-motion="off"],html:not(.js)) .anim-edit .shot-3 { opacity: 1; }
:is(html[data-motion="off"],html:not(.js)) .anim-edit .playhead { transform: translateX(330px); }
:is(html[data-motion="off"],html:not(.js)) .anim-edit .shot-1, :is(html[data-motion="off"],html:not(.js)) .anim-edit .shot-2, :is(html[data-motion="off"],html:not(.js)) .anim-edit .shot-4 { opacity: 0; }
:is(html[data-motion="off"],html:not(.js)) .anim-motion .mg-obj { transform: translateY(36px); }
:is(html[data-motion="off"],html:not(.js)) .anim-design .pen, :is(html[data-motion="off"],html:not(.js)) .anim-flow .pulse { opacity: 0; }
:is(html[data-motion="off"],html:not(.js)) .anim-ads .cursor, :is(html[data-motion="off"],html:not(.js)) .anim-web .cursor, :is(html[data-motion="off"],html:not(.js)) .anim-fix .caret { opacity: 0; }
:is(html[data-motion="off"],html:not(.js)) .caps__traits span { opacity: 1 !important; transition: none; }
:is(html[data-motion="off"],html:not(.js)) .tile .tile__box::after { display:none; }
:is(html[data-motion="off"],html:not(.js)) .anim .pen, :is(html[data-motion="off"],html:not(.js)) .anim .pulse, :is(html[data-motion="off"],html:not(.js)) .anim-motion circle:has(animateMotion) { visibility: hidden; }
