/* Shared by the homepage and every presentation page.
   Moving between them is one transition: the page around the preview fades, the preview itself
   glides into (or back out of) the presentation, then the new page's words rise in. */
@view-transition { navigation: auto; }
::view-transition { background: #fff }   /* between the two pages there is only white, never the dark behind the frame */
/* opened from the row: no cross-fade. The homepage's last frame (the card already in place) stays up, untouched,
   until the work page's own copy of the card has its picture ready; work-flow.js then ends the transition in one cut.
   The holds are long on purpose: they are always cut short (at the latest 800 ms in, by the page's head script). */
html.wk-in::view-transition-old(root) { animation: pk-hold 3s linear both; mix-blend-mode: normal }
html.wk-in::view-transition-new(root) { animation: pk-wait 3s linear both; mix-blend-mode: normal }
@keyframes pk-hold { from, to { opacity: 1 } }
/* back from a work page to the homepage: the work page holds until the homepage is settled (its fonts in, already at
   the row), then one quick cross-fade, run from the homepage's head script. The holds are always cut short. */
html.pk-return::view-transition-old(root) { animation: pk-hold 3s linear both }
html.pk-return::view-transition-new(root) { animation: pk-wait 3s linear both }
@keyframes pk-wait { from, to { opacity: .004 } }   /* not 0: the browser skips drawing what is fully transparent, and the cut would land on an undrawn page */
/* back and forward with the browser's own buttons: one quick cross-fade between the two pages, never a dip to white */
html.pk-trav::view-transition-old(root) { animation: pk-out .34s cubic-bezier(.4,0,.2,1) both }
html.pk-trav::view-transition-new(root) { animation: pk-in .34s cubic-bezier(.4,0,.2,1) both }
::view-transition-group(*) { animation-duration: .8s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root) { animation: pk-out .28s ease both; }
::view-transition-new(root) { animation: pk-in .5s ease .38s both; }
::view-transition-old(pv-growth), ::view-transition-new(pv-growth),
::view-transition-old(pv-crm), ::view-transition-new(pv-crm) { animation-duration: .45s; height: 100%; object-fit: cover; }
@keyframes pk-out { to { opacity: 0 } }
@keyframes pk-in { from { opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.pk-top, .pk-hd {
  --pk-ink: #111; --pk-2: #4A4A4F; --pk-muted: #8A8A8E; --pk-rule: #E8E8EA;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* top line on presentation pages: the same quiet line as the homepage */
.pk-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1280px; margin: 0 auto; box-sizing: border-box;
  padding: 22px max(16px, env(safe-area-inset-right, 0px), 3vw) 0 max(16px, env(safe-area-inset-left, 0px), 3vw);
  font-size: 16px; z-index: 50;
  /* fixed: the name (the way home) stays in the top-left corner the whole way down */
  position: fixed; left: 0; right: 0; top: 0; pointer-events: none;
}
.pk-top a { pointer-events: auto }
/* a soft white backing, invisible on the white page, that keeps the name legible when content passes under it */
.pk-top .pk-home { margin: -7px -14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4) }
.pk-home, .pk-mail { color: var(--pk-ink); text-decoration: none; white-space: nowrap }
.pk-home { font-weight: 500 }
.pk-mail:hover { text-decoration: underline; text-underline-offset: 4px }   /* the name takes you home but shows no underline */
.pk-name { display: none }

/* the title under the preview, rising in line by line */
.pk-hd { max-width: 760px; margin: clamp(26px, 4vh, 40px) auto 0; padding: 0 16px; text-align: center; color: var(--pk-ink) }
.pk-hd h1, .pk-hd .pk-t { margin: 0; font-size: clamp(36px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1 }
.pk-hd p { margin: 12px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; color: var(--pk-2); text-wrap: balance }
.pk-hd ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none;
  font: 500 11.5px "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--pk-muted) }
.pk-r { display: block; overflow: hidden; padding-bottom: .08em }
.pk-r > span { display: block; animation: pk-rise .9s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--pk-d, .1s) + var(--i, 0) * 90ms) }
.pk-hd ul, .pk-hd .pk-meta { animation: pk-in .6s ease both; animation-delay: calc(var(--pk-d, .1s) + 300ms) }
/* the intro: a short paragraph, then three facts to scan */
.pk-hd .pk-lede { max-width: 40em; margin: 18px auto 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5 }
.pk-hd .pk-lede2 { margin-top: 10px }
.pk-meta { display: flex; justify-content: center; gap: 16px clamp(32px, 4vw, 56px); flex-wrap: wrap; margin: 30px 0 0; padding: 0 }
.pk-meta div { text-align: center }
.pk-meta dt { font: 500 11px "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--pk-muted) }
.pk-meta dd { margin: 6px 0 0; font-size: 15px; color: var(--pk-ink) }
/* the featured presentations' title page (Growth Analyzer, Excel CRM): the name, one dark line, then a grey line.
   One style for both presentations and for their panels on the homepage, so the openings always match.
   The panels set the three sizes smaller (--pt-h, --pt-l1, --pt-l2); everything else, spacing included, follows. */
.pk-hd.pk-title { max-width: 980px }
.pk-title h1, .pk-title .pk-t { font-size: var(--pt-h, clamp(40px, 4.8vw, 68px)) }
.pk-title .pk-lede { max-width: 30em; margin: .76em auto 0; font-size: var(--pt-l1, clamp(21px, 2vw, 29px)); line-height: 1.36; letter-spacing: -.018em; color: var(--pk-ink) }
.pk-title .pk-lede2 { max-width: 40em; margin-top: .77em; font-size: var(--pt-l2, clamp(17px, 1.45vw, 21px)); line-height: 1.5; letter-spacing: -.005em; color: var(--pk-2) }
/* the logos above the name, sized in the name's own em, so a panel and its page keep one proportion */
.pk-title .pk-lg { display: flex; justify-content: center; align-items: center; gap: .44em; height: 1.2em; margin: 0 0 .6em; padding: 0; list-style: none;
  font-size: var(--pt-h, clamp(40px, 4.8vw, 68px)); line-height: 1; letter-spacing: 0; text-transform: none; animation: none }
.pk-title .pk-lg li { display: block }
.pk-title .pk-lg img { display: block; width: auto; height: calc(var(--lh, .8) * 1em) }
.pk-title:not(.pk-still) .pk-lg { animation: pk-in .6s ease both; animation-delay: var(--pk-d, .1s) }
.pk-still .pk-r > span, .pk-still .pk-lg { animation: none }
/* on its own page (no growing window to share the screen with), the title fills the first screen, at the same height as Growth's */
.pk-title.pk-page { box-sizing: border-box; min-height: calc(100vh - 74px); margin-top: 0; padding-bottom: 12vh; display: flex; flex-direction: column; justify-content: center }
html.pk-arrive { --pk-d: .55s }
/* opened from its homepage panel (the camera pushes in until the panel is the page): the homepage's last frame is this
   page's first, so nothing fades. The old frame holds until the page is set, then the page's head script cuts to it. */
html.pk-zoomin::view-transition-old(root) { animation: pk-hold 3s linear both }
html.pk-zoomin::view-transition-new(root) { animation: pk-wait 3s linear both }
@keyframes pk-rise { from { transform: translateY(105%) } }
@media (prefers-reduced-motion: reduce) { .pk-r > span, .pk-hd ul, .pk-hd .pk-meta { animation: none } }

/* opened over the homepage (old embed mode): the presentation alone */
.pk-embed .pk-top, .pk-embed .pk-hd { display: none }

/* the light / dark switch: a quiet icon at the right end of the top line */
.th-r { display: inline-flex; align-items: center; gap: 20px; pointer-events: none }
.th-tg { -webkit-appearance: none; appearance: none; box-sizing: border-box; display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; margin: -10px -8px -10px 0; padding: 0; border: 0; border-radius: 999px; background: transparent;
  color: #8A8A8E; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease }
.th-tg:hover { color: #111; background-color: rgba(15,17,20,.05) }
.th-tg:focus-visible { outline: 2px solid #0A84FF; outline-offset: 0 }
.th-tg svg { display: block; width: 17px; height: 17px; overflow: visible }
.th-tg .th-sun { display: none }
html[data-theme=dark] .th-tg .th-sun { display: block }
html[data-theme=dark] .th-tg .th-moon { display: none }
/* switching: the new look fades in over the old one, a quarter second, no dip in between */
html.th-vt::view-transition-group(*) { animation-duration: .32s }
html.th-vt::view-transition-old(root) { animation: pk-hold .32s linear both; mix-blend-mode: normal }
html.th-vt::view-transition-new(root) { animation: pk-in .32s cubic-bezier(.4,0,.2,1) both; mix-blend-mode: normal }
/*DARK:BEGIN*/
html[data-theme=dark]::view-transition{background:#111111}
html[data-theme=dark] .pk-top,html[data-theme=dark] .pk-hd{--pk-ink:#E9E9E9;--pk-2:#BEBEC4;--pk-muted:#909094;--pk-rule:#222223}
html[data-theme=dark] .pk-top .pk-home{border-radius:999px;background:rgba(17,17,17,0.86);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
html[data-theme=dark] .pk-home,html[data-theme=dark] .pk-mail{color:var(--pk-ink);text-decoration:none}
html[data-theme=dark] .pk-mail:hover{text-decoration:underline}
html[data-theme=dark] .pk-hd{color:var(--pk-ink)}
html[data-theme=dark] .pk-hd p{color:var(--pk-2)}
html[data-theme=dark] .pk-hd ul{color:var(--pk-muted)}
html[data-theme=dark] .pk-meta dt{color:var(--pk-muted)}
html[data-theme=dark] .pk-meta dd{color:var(--pk-ink)}
html[data-theme=dark] .pk-title .pk-lede{color:var(--pk-ink)}
html[data-theme=dark] .pk-title .pk-lede2{color:var(--pk-2)}
html[data-theme=dark].pk-arrive{--pk-d:.55s}
html[data-theme=dark] .th-tg{border:0;border-radius:999px;background:transparent;color:#909094}
html[data-theme=dark] .th-tg:hover{color:#E9E9E9;background-color:rgba(255,255,255,0.045)}
html[data-theme=dark] .th-tg:focus-visible{outline:2px solid #4699FF;outline-offset:0}

/*DARK:END*/
