/* Soft corners and motion for the chosen Candy studio layout. */
.candy { --soft-radius: 28px; --soft-ease: cubic-bezier(.22,.61,.36,1); }
.candy-nav { border-bottom-width: 1px; border-color: #25202750; }
.candy .project-photo { border-radius: var(--soft-radius); isolation: isolate; }
.candy .project-photo > img { transition: transform 850ms var(--soft-ease); }
.candy .project-photo:hover > img { transform: scale(1.025); }
.candy .shot-overlay { padding: clamp(22px,3vw,44px); background: linear-gradient(180deg,#25202700 5%,#25202742 38%,#252027ed 100%); transition: opacity 500ms var(--soft-ease); }
.candy .shot-overlay > * { transform: translateY(10px); transition: transform 550ms var(--soft-ease); }
.candy .project-photo:hover .shot-overlay > *, .candy .project-photo:focus-visible .shot-overlay > * { transform: translateY(0); }
.candy .candy-photo-label { transition: opacity 350ms,transform 500ms var(--soft-ease); }
.candy .project-photo:hover .candy-photo-label, .candy .project-photo:focus-visible .candy-photo-label { opacity: 0; transform: translateY(10px); }
.candy .demo-photo { border-radius: 100px; padding: 5px 11px; background: #fff5f0e8; }
.candy-nav-button,.candy-button,.candy .staffbaza-pill { border-radius: 100px; transition: background 350ms,color 350ms,transform 350ms var(--soft-ease); }
.candy-nav-button:hover,.candy-button:hover { transform: translateY(-2px); }
.candy-staffbaza { border-radius: var(--soft-radius); transition: background 450ms,transform 450ms var(--soft-ease); }
.candy-staffbaza:hover { transform: translateY(-3px); }
.candy-profile,.candy-footer { border-top-width: 1px; border-color: #25202750; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A seamless moving band; the duplicate is hidden from assistive technology. */
.candy-band.candy-marquee { width: 100%; margin: 7px 0 0; padding: 0; gap: 0; flex-wrap: nowrap; overflow: hidden; border-radius: 0; align-items: stretch; }
.band-window { overflow: hidden; min-width: 0; flex: 1; }
.band-track { display: flex; width: max-content; animation: candy-ticker 32s linear infinite; }
.band-group { display: flex; align-items: center; justify-content: space-around; gap: clamp(28px,4vw,70px); flex: none; min-width: 100vw; padding: 18px 25px; white-space: nowrap; }
.band-group span { font-size: 1rem; }
.band-group i { font-style: normal; font-size: 1.6rem; line-height: 1; }
.candy-marquee:hover .band-track { animation-play-state: paused; }
@keyframes candy-ticker { to { transform: translateX(-50%); } }

/* A single photographic film: frames and both perforated edges travel together. */
/* Isolate the animated offset so each frame does not restyle every ink glyph. */
@property --film-offset { syntax: '<length>'; inherits: false; initial-value: 0px; }
.candy-slideshow { padding: 48px 0 52px; border-top: 1px solid #25202750; }
.candy-slideshow .candy-section-title { margin-bottom: 28px; }
.candy-slideshow .candy-section-title .eyebrow { font-size: .75rem; margin: 0 0 18px; }
.candy-slideshow .candy-section-title > p { max-width: 400px; }
.slideshow-body { width: 100%; }
.slideshow-stage { --cards-per-view: 3; --card-gap: 22px; --film-offset: 0px; width: 100%; position: relative; overflow: hidden; touch-action: pan-y; background: linear-gradient(#252027,#252027) top/100% 38px no-repeat,linear-gradient(#252027,#252027) bottom/100% 38px no-repeat; padding: 38px 0; }
.slideshow-stage::before,.slideshow-stage::after { --film-offset: inherit; content: ''; position: absolute; left: 0; width: calc(100% + 32px); height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12'%3E%3Crect width='19' height='12' rx='3' fill='%23ee9cc7'/%3E%3C/svg%3E") repeat-x; transform: translate3d(var(--film-offset),0,0); pointer-events: none; will-change: transform; }
.slideshow-stage::before { top: 12px; }
.slideshow-stage::after { bottom: 12px; }
.card-track { width: 100%; display: flex; align-items: stretch; gap: var(--card-gap); will-change: transform; }
.card-track.is-seeking { pointer-events: none; }
.event-slide { position: relative; min-width: 0; display: flex; flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view)); }
.event-slide::after { content: ''; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--card-gap)); width: var(--card-gap); background: #252027; pointer-events: none; }
.candy .event-slide .event-card { width: 100%; display: block; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; touch-action: pan-y; perspective: 1400px; overflow: visible; }
.event-slide .event-card:focus-visible { outline-color: #fff1a7; outline-offset: -4px; }
.photo-turn { position: relative; display: block; width: 100%; aspect-ratio: 1.65; transform-style: preserve-3d; transition: transform 750ms cubic-bezier(.22,.61,.36,1); }
.event-card.is-flipped .photo-turn { transform: rotateY(180deg); }
.event-card-photo,.photo-back { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.event-card-photo { transform: translateZ(.5px); }
.event-card-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.photo-back { transform: rotateY(180deg); background: rgb(0 0 0 / 58%); box-shadow: inset 0 0 0 1px #ffffff26; color: #fff9fc; }
.handwritten-note { display: block; width: 100%; height: 100%; shape-rendering: geometricPrecision; }
.ink-definitions { position: absolute; pointer-events: none; }
.ink-glyph { fill: currentColor; stroke: currentColor; stroke-width: .02; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; opacity: 0; }
.ink-meta { color: #f8e0ed; }
.is-writing .ink-glyph { animation: photo-ink 240ms linear var(--ink-delay) both; }
.is-writing .ink-glyph.is-inked { animation: none; opacity: 1; fill-opacity: 1; stroke-dashoffset: 0; }
.photo-back-action { position: absolute; right: 20px; bottom: 15px; font-size: .875rem; line-height: 1.4; color: #fff9fc; text-decoration: underline; text-underline-offset: 4px; opacity: 0; }
.is-writing .photo-back-action { animation: photo-action 350ms ease calc(var(--writing-duration) - 250ms) both; }
.photo-touch-hint { display: none; }
@keyframes photo-ink { 0% { opacity: 1; stroke-dashoffset: 1; fill-opacity: 0; } 65% { fill-opacity: 0; } 100% { opacity: 1; stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes photo-action { to { opacity: 1; } }
@media(hover:none) { .photo-hover-hint { display: none; } .photo-touch-hint { display: inline; } }
.slideshow-bottom { padding-top: 22px; }
.slideshow-controls { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 22px; }
.slide-dots { display: flex; align-items: center; }
.slide-dots button { width: 32px; height: 44px; padding: 4px; display: grid; place-items: center; border-radius: 50%; }
.slide-dots button span { width: 7px; height: 7px; border-radius: 100px; background: #25202755; transition: width 400ms var(--soft-ease),background 400ms; }
.slide-dots button[aria-current="true"] span { width: 22px; background: #252027; }
.slide-navigation { display: flex; gap: 8px; }
.slide-control { border: 1px solid #25202769; border-radius: 100px; padding: 11px 18px; min-height: 46px; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; transition: background 300ms,color 300ms; }
.slide-control:hover { background: #252027; color: #fff5fb; }
.slideshow-demo-note { font-size: .8125rem; line-height: 1.8; color: #513443; margin-top: 18px; max-width: 710px; }

/* Full demo cases use the existing dialog, with a task and result section. */
.project-dialog { border-radius: 28px; scroll-behavior: smooth; }
.dialog-close { position: sticky; float: right; margin: 14px 14px -56px 0; }
.dialog-copy { clear: both; }
.project-dialog[open] { animation: case-appear 350ms cubic-bezier(.22,.61,.36,1); }
.project-dialog[open]::backdrop { animation: case-backdrop 350ms ease; }
.project-dialog.is-full-case { width: min(1040px,calc(100% - 36px)); background: #fff5f8; }
.is-full-case .dialog-image { max-height: 420px; aspect-ratio: 2; object-fit: cover; object-position: center 15%; }
.is-full-case .dialog-copy { padding: 36px 46px 44px; }
.is-full-case .dialog-copy h2 { font-family: Unbounded,Arial,sans-serif; font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.35; font-weight: 500; }
.is-full-case .dialog-copy dl { border-block: 1px solid #42293724; padding: 24px 0; }
.is-full-case .dialog-copy h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.case-goal { padding: 24px; border-radius: 22px; background: #fff1a7; margin: 28px 0; }
.case-goal p,.case-result p { font-size: 1rem; line-height: 1.85; }
.case-tasks-title { margin-top: 28px; }
.case-result { padding-top: 22px; margin-top: 26px; border-top: 1px solid #42293724; }
@keyframes case-appear { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes case-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media(max-width:1099px) {
  .slideshow-stage { --cards-per-view: 2; --card-gap: 20px; }
}
@media(max-width:639px) {
  .slideshow-stage { --cards-per-view: 1; --card-gap: 16px; }
}
@media(max-width:600px) {
  .candy { --soft-radius: 22px; }
  .band-group { gap: 32px; padding: 17px 20px; }
  .band-group span { font-size: .875rem; }
  .candy .candy-nav-button { font-size: .875rem; }
  .candy-slideshow { padding: 36px 0 40px; }
  .candy-slideshow .candy-section-title .eyebrow { margin-bottom: 14px; }
  .candy-slideshow .candy-section-title > p { margin-top: 18px; }
  .slideshow-bottom { padding-top: 18px; }
  .slideshow-controls { justify-content: space-between; gap: 12px; }
  .slide-control { padding: 10px 13px; }
  .slideshow-demo-note { margin-top: 18px; font-size: .75rem; }
  .project-dialog,.project-dialog.is-full-case { width: calc(100% - 24px); border-radius: 22px; }
  .is-full-case .dialog-image { max-height: 260px; aspect-ratio: 1.4; }
  .is-full-case .dialog-copy { padding: 26px 23px 30px; }
  .case-goal { padding: 20px; border-radius: 18px; }
}
@media(max-width:460px) {
  .slideshow-controls { flex-direction: column; gap: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .band-track { animation: none; width: 100%; transform: none; }
  .band-group { min-width: 0; width: 100%; flex-wrap: wrap; gap: 12px 20px; justify-content: center; white-space: normal; }
  .band-group[data-repeat] { display: none; }
  .band-group i:last-child { display: none; }
  .candy *, .project-dialog, .project-dialog::backdrop { animation: none!important; transition: none!important; }
  .candy .project-photo:hover > img,.candy .project-photo:hover .shot-overlay > * { transform: none; }
  .candy .is-writing .ink-glyph { opacity: 1; fill-opacity: 1; stroke-dashoffset: 0; }
  .candy .is-writing .photo-back-action { opacity: 1; }
}
