/* Shared by the /skills pages with the cartoon animations (coldemail, email, networking, negotiating, time). Put class "fx" on the .yonk article div. */
.skill-lead { margin-top: 1.25em; font-size: 20pt; font-weight: 700; line-height: 1.2; }
.fx {
  --ink: #1d2327;
  --teal: hsl(170, 75%, 41%);
  --mint: #97E5D7;
  --mint-soft: #e3f7f2;
  --cream: #FCF1DD;
  --leaf: #D2EBD8;
  --red: hsl(351, 83%, 61%);
  --sun: hsl(42, 94%, 55%);
  --muted: #5b6770;
}
.fx svg text { font-family: 'League Spartan', sans-serif; }
.fx h3 { font-size: 17pt; margin-top: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* hero: send -> inbox. Default (un-animated) styles are the final state. */
.hero-wrap { max-width: 440px; margin: 1.2em auto .2em; }
.hero-svg { width: 100%; height: auto; display: block; cursor: pointer; }
.hero-cap { text-align: center; font-size: 12px !important; color: var(--muted); margin: 0 !important; font-family: 'League Spartan', sans-serif; }
.h-env { transform: translate(285px, 112px) scale(.85); transform-origin: 0 0; }
.h-badge, .h-btn { transform-box: fill-box; transform-origin: center; }
.h-tray { transform-box: fill-box; transform-origin: center bottom; }
.h-trail { stroke-dasharray: 4 7; opacity: .55; }
.h-cursor { opacity: 0; }
.play .h-env { animation: envFly 4s .3s both cubic-bezier(.45,.05,.4,1); }
.play .h-btn { animation: btnPress 4s .3s both; }
.play .h-cursor { animation: cursorIn 4s .3s both; }
.play .h-trail { animation: trail 4s .3s both linear; }
.play .h-badge { animation: badgePop 4s .3s both; }
.play .h-tray { animation: trayBump 4s .3s both; }
@keyframes envFly {
  0%, 14% { transform: translate(70px, 98px) scale(.3); opacity: 0; }
  20% { transform: translate(92px, 74px) rotate(-10deg) scale(1); opacity: 1; }
  34% { transform: translate(111px, 51px) rotate(-14deg) scale(1); }
  50% { transform: translate(168px, 32px) rotate(0deg) scale(1); }
  64% { transform: translate(230px, 44px) rotate(18deg) scale(1); }
  76% { transform: translate(285px, 95px) rotate(8deg) scale(.9); }
  86%, 100% { transform: translate(285px, 112px) scale(.85); opacity: 1; }
}
@keyframes btnPress { 0%, 8% { transform: scale(1); } 12% { transform: scale(.88); } 17%, 100% { transform: scale(1); } }
@keyframes cursorIn {
  0% { opacity: 0; transform: translate(30px, 26px); }
  5% { opacity: 1; }
  10%, 16% { opacity: 1; transform: translate(0, 0); }
  28%, 100% { opacity: 0; transform: translate(6px, 10px); }
}
@keyframes trail { 0%, 14% { opacity: 0; stroke-dashoffset: 60; } 40% { opacity: .9; } 100% { opacity: .55; stroke-dashoffset: 0; } }
@keyframes badgePop { 0%, 85% { transform: scale(0); } 92% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes trayBump { 0%, 85% { transform: none; } 89% { transform: translateY(4px) scaleY(.96); } 95%, 100% { transform: none; } }

/* doodle dividers */
.doodle { display: block; width: 180px; max-width: 60%; height: auto; margin: 2.2em auto 1em; }
.doodle .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
.js .doodle:not(.in) .draw { stroke-dashoffset: 1; }
.doodle .plane { transition: opacity .4s 1.3s ease, transform .4s 1.3s ease; }
.js .doodle:not(.in) .plane { opacity: 0; transform: translateX(-10px); }

/* five-email stepper */
.yonk ol.steps { list-style: none; padding: 0; margin: 1em 0 .6em; position: relative; }
.yonk ol.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 30px; border-left: 3px dotted var(--mint); }
.yonk ol.steps > li { list-style: none !important; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin-bottom: 1.1em; position: relative; }
.step-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); display: grid; place-items: center; position: relative; z-index: 1; }
.steps li:nth-child(2) .step-dot { background: var(--leaf); }
.steps li:nth-child(3) .step-dot { background: #ffd9de; }
.steps li:nth-child(4) .step-dot { background: var(--mint-soft); }
.steps li:nth-child(5) .step-dot { background: var(--mint); }
.step-dot svg { width: 22px; height: 22px; }
.step-num { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font: 700 11px/18px 'League Spartan', sans-serif; width: 18px; height: 18px; border-radius: 50%; text-align: center; }
.steps .step-body p { margin-top: .2em; }
.yonk .step-title { font-weight: 700; font-family: 'League Spartan', sans-serif; font-size: 17pt; line-height: 1.2; margin-top: .55em; }
.greet { display: flex; flex-wrap: wrap; gap: 8px; margin: .5em 0; }
.greet span { background: #f6f9fc; border: 1px solid #dce6e9; border-radius: 8px; padding: 4px 10px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.greet b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

/* finder chain */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: .8em 0; font-family: 'League Spartan', sans-serif; font-size: 16px; }
.chain span { background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 20px; padding: 5px 12px 3px; }
.chain span.last { background: #fff; border-style: dashed; color: var(--muted); }
.chain i { font-style: normal; color: var(--teal); font-weight: 700; }
.chain span:nth-of-type(2), .chain i:nth-of-type(1) { transition-delay: .15s; }

/* mock email cards */
.mail { border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 5px 5px 0 var(--mint); margin: 1.2em 5px 1em 0; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
.mail-bar { background: var(--cream); border-bottom: 2px solid var(--ink); padding: 6px 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.mail-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.mail-bar i:nth-child(1) { background: var(--red); }
.mail-bar i:nth-child(2) { background: var(--sun); }
.mail-bar i:nth-child(3) { background: var(--teal); margin-right: 6px; }
.mail-row { display: flex; gap: 4px 8px; padding: 6px 14px; border-bottom: 1px solid #e6ecef; font-size: 14px; line-height: 1.4; color: var(--ink); flex-wrap: wrap; }
.mail-row .k { color: var(--muted); width: 56px; flex: none; }
.mail-row .v { flex: 1 1 160px; min-width: 0; }
.mail-row .subj { font-weight: 700; }
.mail-row .count { flex: none; font: 700 12px/20px 'League Spartan', sans-serif; background: var(--leaf); border-radius: 10px; padding: 0 8px; margin-left: auto; align-self: flex-start; }
.mail-row .count.over { background: #ffd9de; }
.meter { position: relative; height: 6px; background: #eef2f4; margin: 8px 14px 0; border-radius: 3px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--teal); transition: width 1.2s cubic-bezier(.2,.7,.3,1); }
.meter i.over { background: var(--red); }
.js .mail:not(.in) .meter i { width: 0 !important; }
.meter b { position: absolute; left: 66.67%; top: -4px; bottom: -4px; border-left: 2px dashed var(--ink); }
.yonk .meter-note { font-size: 12px; color: var(--muted); padding: 5px 14px 8px; margin: 0; line-height: 1.4; border-bottom: 1px solid #e6ecef; }
.mail-body.copy-paste-element { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 12px 44px 14px 14px; }
.yonk .mail-body p { font-size: 15px; line-height: 1.5; margin: 0 0 .7em; color: var(--ink); }
.yonk .mail-body p:last-of-type { margin-bottom: 0; }
.yonk .mail-body .ph { color: var(--muted); font-style: italic; }
.mail-body .copy-icon { right: 12px; }
.mail-body p[data-pin] { position: relative; padding-left: 28px; }
.mail-body p[data-pin]::before { content: attr(data-pin); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); font: 700 11px/17px 'League Spartan', sans-serif; text-align: center; transform: scale(1); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.js .mail:not(.in) p[data-pin]::before { transform: scale(0); }
.mail p[data-pin="1"]::before { transition-delay: .4s; }
.mail p[data-pin="2"]::before { transition-delay: .55s; }
.mail p[data-pin="3"]::before { transition-delay: .7s; }
.mail p[data-pin="4"]::before { transition-delay: .85s; }
.yonk ol.legend { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .yonk ol.legend { grid-template-columns: minmax(0, 1fr); } }
.yonk .legend li { list-style: none !important; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; background: #fffaf0; border: 1px solid #f3dfb5; border-radius: 8px; padding: 8px 10px; }
.legend li b { flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); font: 700 11px/17px 'League Spartan', sans-serif; text-align: center; }

/* before -> after edit */
.edit { background: #f6f9fc; border: 2px dashed #b9c7cd; border-radius: 12px; padding: 14px 16px; margin: 1em 0; }
.yonk .edit-label { font: 700 12px/1.4 'League Spartan', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.edit .wc-after { color: var(--teal); }
.edit .wc-before, .js .edit:not(.fixed) .wc-after { display: none; }
.js .edit:not(.fixed) .wc-before { display: inline; }
.yonk .edit p.sentence { font-size: 16px; line-height: 1.7; margin: 0; }
.edit del { text-decoration: none; color: #8a979e; background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 100% 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .9s ease, color .9s ease; }
.js .edit:not(.in) del { background-size: 0 2px; color: var(--ink); }
.edit ins { text-decoration: none; background: var(--leaf); border-radius: 4px; padding: 0 3px; font-weight: 600; animation: insPop .5s ease both; }
.js .edit:not(.fixed) ins { display: none; }
@keyframes insPop { from { opacity: 0; } to { opacity: 1; } }
.yonk .send-line { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 18pt; }
.send-line span { display: inline-block; background: var(--teal); color: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 1px 14px 0; margin-left: 4px; }

/* care cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 1em 0; }
.card { border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; background: #fff; }
.card:nth-child(1) { background: var(--cream); }
.card:nth-child(2) { background: var(--mint-soft); transition-delay: .1s; }
.card:nth-child(3) { background: var(--leaf); transition-delay: .2s; }
.card:nth-child(4) { background: #ffeef0; transition-delay: .3s; }
.yonk .card h3 { margin: 0 0 .2em; font-size: 16pt; line-height: 1.2; }
.yonk .card p { font-size: 16px; line-height: 1.5; margin: 0; }

/* path diagram */
.path-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 1em auto .4em; }
.path-svg .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease; }
.path-svg .d2 { transition-delay: .8s; }
.js .path-svg:not(.in) .draw { stroke-dashoffset: 1; }
.path-svg .goal { transform-box: fill-box; transform-origin: center; }
.path-svg.in .goal { animation: goalPulse .6s 1.7s ease both; }
@keyframes goalPulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* habit stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 1em 0; }
.stat { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 6px 8px; text-align: center; background: var(--cream); }
.stat:nth-child(2) { background: var(--mint-soft); transition-delay: .1s; }
.stat:nth-child(3) { background: var(--leaf); transition-delay: .2s; }
.stat strong { display: block; font: 800 24px/1.1 'League Spartan', sans-serif; color: var(--ink); }
.stat span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); margin-top: 4px; }

/* style.css only styles .yonk text at >=768px; give phones the same basics */
@media (max-width: 767px) {
  .yonk.fx { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; }
  .yonk p { margin: .7em 0 .5em; }
  .yonk a { display: inline; text-decoration: underline; }
  .yonk h2 { margin-top: 1.1em; line-height: 1.25; }
  .yonk ul { padding-left: 22px; margin: .4em 0; }
  .yonk ul li { list-style-type: disc; }
}

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-cap { display: none; }
}

/* more stepper colours for longer lists */
.steps li:nth-child(6) .step-dot { background: var(--cream); }
.steps li:nth-child(7) .step-dot { background: var(--leaf); }
