/* The portrait and view switch retain the existing portfolio identity. */
:root { scrollbar-gutter: stable; }
.view-toggle { position: relative; display: inline-grid; grid-template-columns: repeat(2, 88px); padding: 4px; margin-top: 24px; border: 0; border-radius: 16px; background: #f5f5f5; box-shadow: inset 0 0 0 1px #00000029; isolation: isolate; }
.view-toggle[hidden], #chill-panel[hidden], .gallery[hidden], .journey[hidden] { display: none; }
.view-toggle button { position: relative; border: 0; padding: 0 12px; min-height: 36px; background: transparent; border-radius: 12px; font-size: var(--text-label); line-height: var(--leading-label); color: #737373; cursor: pointer; }
/* Compact 36px controls retain a 44px target within their surrounding gap. */
.view-toggle button::after, .journey-controls button::after { content: ''; position: absolute; inset: -4px 0; }
.journey-controls button::after { inset: 50% auto auto 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.view-toggle button[aria-selected="true"] { color: #141414; }
.view-toggle-indicator { position: absolute; inset: 4px auto 4px 4px; width: 88px; border-radius: 12px; background: linear-gradient(to bottom, #fff 32.7%, #f4f4f4 100%); box-shadow: inset 0 0 0 1px #00000029, 0 1px 2px rgb(10 13 18 / 5%); transition: transform var(--motion-hover) var(--ease-out); z-index: -1; }
@supports (animation-timing-function: linear(0, 1)) {
  /* Motion spring({ keyframes: [0, 1], duration: 500, bounce: .2 }).
     Arrives in ~250ms; the remaining time is a subtle 1.5% settle.
     A CSS transition retargets from its current position on a quick reversal. */
  .view-toggle-indicator { transition: transform 500ms linear(0, .1167, .3435, .5691, .7484, .8724, .9487, .9902, 1.0091, 1.0149, 1.0142, 1.0111, 1.0076, 1.0046, 1.0024, 1.0011, 1); }
}
.view-toggle[data-view="journey"] .view-toggle-indicator { transform: translateX(100%); }
.view-toggle[data-instant] .view-toggle-indicator { transition: none; }
.view-toggle button:focus-visible { outline-offset: -2px; border-radius: 12px; }
.portfolio-page[data-view="journey"], :root:has(.portfolio-page[data-view="journey"]) { background: #050505; color: #ededed; color-scheme: dark; }
.portfolio-page[data-view="journey"] .view-toggle { background: #111; box-shadow: inset 0 0 0 1px #ffffff29; }
.portfolio-page[data-view="journey"] .view-toggle button { color: #999; }
.portfolio-page[data-view="journey"] .view-toggle button[aria-selected="true"] { color: #141414; }
.portfolio-page[data-view="journey"] > .site-footer { color: #777; }
/* Cards shrink on short windows so the timeline and its inspector fit on screen. */
.journey { --chapter-width: clamp(320px, calc(100svh - 380px), 400px); --chapter-gap: 16px; --inspector-width: clamp(300px, 30vw, 440px); margin-top: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; }
.journey-bottom { margin-inline: 5.754vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.journey-controls { display: none; gap: 8px; }
.journey-controls button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #242424; border-radius: 50%; background: transparent; color: #aaa; font-size: 18px; cursor: pointer; }
.journey-controls button:disabled { color: #3c3c3c; cursor: default; border-color: #141414; }
.journey-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) var(--inspector-width); height: clamp(540px, calc(100svh - 170px), 780px); overflow: hidden; background: #050505; }
/* A soft edge falloff makes the rail read as a landscape. */
.journey-stage::after { content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(90deg, #050505, transparent 10% calc(100% - var(--inspector-width) - 140px), #050505 calc(100% - var(--inspector-width))); }
.journey-era-layer { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }
.journey-era { position: absolute; left: calc((100% - var(--inspector-width)) / 2); top: -.1em; color: transparent; -webkit-text-stroke: 1px #ffffff26; font-size: clamp(170px, 19vw, 260px); font-weight: 300; line-height: 1; letter-spacing: -.085em; }
.journey-viewport { position: relative; z-index: 1; grid-area: 1 / 1; container-type: inline-size; height: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; touch-action: pan-y; }
.journey-viewport::-webkit-scrollbar { display: none; }
.journey-viewport:focus-visible { outline: 1px solid #7aa9ff; outline-offset: -4px; border-radius: 6px; }
.journey-viewport.is-dragging, .journey-viewport.is-dragging * { cursor: grabbing; user-select: none; }
.journey-list { position: relative; display: flex; align-items: center; gap: var(--chapter-gap); list-style: none; padding: 0 max(0px, calc((100cqw - var(--chapter-width)) / 2)) 40px; margin: 0; width: max-content; height: 100%; }
.journey-chapter { position: relative; width: var(--chapter-width); flex: none; }
.journey-chapter article { position: relative; transform-origin: center; font-size: var(--text-body); line-height: var(--leading-body); }
.journey-year { display: none; }
.journey-chapter .journey-context { margin: 0 13px 4px; min-height: 20px; font-size: var(--text-label); line-height: var(--leading-label); color: #8b8b8b; }
.journey-chapter h2 { font-size: var(--text-company); line-height: 1.2; text-wrap: balance; font-weight: 400; margin: 0 13px 13px; }
.journey-chapter-select { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; text-align: left; font: inherit; text-wrap: balance; background: none; padding: 0; border: 0; cursor: pointer; }
.journey-company { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.journey-chapter-select:disabled { color: inherit; cursor: default; }
/* Shared logo alignment; image sizes account for source whitespace. */
.journey-logo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; overflow: hidden; position: relative; border-radius: 7px; background: #171717; }
.journey-logo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); pointer-events: none; }
.journey-logo img { display: block; width: var(--journey-logo-artwork, 20px); height: var(--journey-logo-artwork, 20px); max-width: none; flex: none; object-fit: contain; }
.journey-logo-unframed { background: transparent; border-radius: 0; }
.journey-logo-unframed::after { content: none; }
/* Enlarge the inset VESPR artwork and balance its asymmetric SVG padding. */
.journey-logo-vespr { --journey-logo-artwork: 28px; }
.journey-logo-vespr img { transform: translateY(.5px); }
.journey-logo-tandem { --journey-logo-artwork: 28px; }
.journey-logo-intive { --journey-logo-artwork: 26px; }
.journey-logo-xoxno { --journey-logo-artwork: 36px; }
.journey-logo-dakora { --journey-logo-artwork: 28px; }
.journey-media, .journey-brand-panel { margin: 0; border: 1px solid #1c1c1c; border-bottom: 0; border-radius: 18px 18px 0 0; padding: 11px 11px 0; background: #141414; box-shadow: 0 12px 32px #0003; }
.journey-media-trigger { display: block; position: relative; padding: 0; width: 100%; border: 0; border-radius: 6px; overflow: hidden; background: #090909; cursor: zoom-in; }
.journey-media-trigger:focus-visible { border-radius: 6px; }
.journey-media-trigger::after { content: ''; position: absolute; inset: 0; border-radius: inherit; outline: 1px solid oklch(1 0 0 / 0.1); outline-offset: -1px; pointer-events: none; }
.journey-media img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: contain; }
.journey-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0; }
.journey-media video.is-playing { opacity: 1; }
.journey-expand { display: grid; place-items: center; position: absolute; right: 9px; bottom: 9px; width: 30px; height: 30px; border: 1px solid #ffffff24; border-radius: 50%; background: #171717db; color: #ccc; font-size: 15px; }
.journey-media figcaption { display: none; }
.journey-brand-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; aspect-ratio: 16 / 10; font-size: 14px; color: #888; background: radial-gradient(ellipse at center, #202020, #121212 75%); }
.journey-brand-symbol { display: flex; align-items: center; gap: 24px; transform: scale(1.25); }
.journey-brand-symbol > img { object-fit: contain; }
.journey-project-mark { display: block; width: 64px; height: 64px; padding: 8px; object-fit: contain; border: 1px solid #ffffff29; border-radius: 16px; background: linear-gradient(145deg, #202020, #111); box-shadow: inset 0 1px 0 #ffffff0a, 0 8px 24px #0004; }
.journey-conversation { font-size: 40px; color: #ccc; }
.journey-tag { display: block; padding: 10px 13px 13px; border: 1px solid #1c1c1c; border-top: 0; border-radius: 0 0 18px 18px; background: #141414; color: #939393; font-size: var(--text-label); line-height: var(--leading-label); }
.journey-copy { display: none; }
/* Like a design tool's properties panel, the selected chapter's story sits beside the canvas. */
.journey-inspector { position: relative; z-index: 4; grid-area: 1 / 2; align-self: center; display: flex; flex-direction: column; align-items: flex-start; margin: 0 5.754vw 40px 0; padding-left: 28px; border-left: 1px solid #222; }
.journey-inspector-label { margin: 0 0 14px; font: 500 11px/1.4 'Geist Mono', monospace; color: #666; }
.journey-inspector-label::before { content: '# '; }
.journey-inspector .contact-link { margin-top: 24px; }
.journey-story { display: grid; font-size: var(--text-body); line-height: var(--leading-body); color: #bbb; }
/* Overlapping captions reserve the tallest one, including after font/width changes. */
.journey-story-chapter { grid-area: 1 / 1; align-self: start; visibility: hidden; }
.journey-story-chapter.is-current { visibility: visible; }
.journey-story p { margin: 0 0 12px; }
.journey-story p, .journey-copy p { text-wrap: pretty; overflow-wrap: break-word; }
.journey-story p:last-child, .journey-copy p:last-child { margin-bottom: 0; }
.journey-story .journey-detail { color: #888; font-size: var(--text-body); }
.journey-detail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.journey-bottom { padding: 12px 0 0; font-family: 'Geist Mono', monospace; font-size: var(--text-meta); line-height: var(--leading-body); }
.journey-bottom p { margin: 0; color: #888; }
.journey-mobile-hint { display: none; }
.journey-lightbox { padding: 0; border: 1px solid #383838; border-radius: 12px; background: #141414; max-width: min(1100px, 92vw); max-height: 88dvh; overflow: auto; }
.journey-lightbox::backdrop { background: #000d; }
.journey-lightbox > img { display: block; max-width: 100%; max-height: 85dvh; object-fit: contain; }
.journey-lightbox-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 50%; background: #171717f2; color: #fff; font-size: 24px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .journey-controls button:hover:not(:disabled), .journey-lightbox-close:hover { background: #202020; color: #fff; }
}
.view-toggle button:active:not(:focus-visible) { background: #00000014; }
.portfolio-page[data-view="journey"] .view-toggle button:active:not(:focus-visible) { background: #ffffff14; }
.journey-controls button:active:not(:disabled), .journey-lightbox-close:active { background: #303030; }
.journey-media-trigger:active { filter: brightness(.9); }
@media (hover: hover) and (pointer: fine) {
  .view-toggle button:hover:not([aria-selected="true"]) { background: #0000000a; }
  .portfolio-page[data-view="journey"] .view-toggle button:hover:not([aria-selected="true"]) { background: #ffffff0a; }
  .journey-chapter-select:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
  .journey-media-trigger:hover::after { outline-color: #ffffff50; }
}
@media (min-width: 761px) {
  .journey-bottom { display: none; }
}
@media (max-width: 1279px) {
  .journey { --chapter-width: clamp(320px, calc(100svh - 380px), 380px); }
  .journey-inspector { margin-right: 24px; }
  .journey-bottom { margin-inline: 24px; }
}
@media (max-width: 760px) {
  .view-toggle { margin-top: 20px; }
  .view-toggle button { min-height: 44px; }
  .view-toggle button::after { inset: 0; }
  .journey { margin: 30px 20px 0; }
  .journey-controls, .journey-era-layer, .journey-stage::after, .journey-inspector { display: none; }
  .journey-mobile-hint { display: inline; }
  .journey-stage { display: block; height: auto; overflow: visible; background: none; }
  .journey-viewport { overflow: visible; height: auto; cursor: auto; }
  .journey-list { display: block; width: auto; padding: 0 0 0 4px; }
  .journey-chapter { width: auto; border-left: 1px solid #292929; padding: 0 0 40px 16px; }
  .journey-chapter:last-child { padding-bottom: 0; }
  .journey-chapter article { transform: none !important; }
  .journey-year { display: flex; justify-content: space-between; padding: 0 0 12px; font-size: var(--text-caption); line-height: var(--leading-body); color: #888; }
  .journey-year::before { content: ''; position: absolute; width: 5px; height: 5px; background: #aaa; border-radius: 50%; left: -3px; top: 6px; box-shadow: 0 0 0 5px #050505; }
  .journey-chapter-current .journey-year::before { background: #e5a274; }
  .journey-now { color: #e5a274; }
  .journey-chapter .journey-context, .journey-chapter h2 { margin-left: 0; }
  .journey-chapter .journey-context:empty { display: none; }
  .journey-copy { display: block; padding-top: 16px; }
  .journey-copy p { margin: 0 0 12px; }
  .journey-detail { color: #888; }
  .journey-bottom { margin: 28px 0 0; align-items: start; flex-wrap: wrap; gap: 16px; }
  .journey-bottom .contact-link { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .view-toggle-indicator { transition: none; }
}

.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.view-toolbar .view-toggle { margin-top: 0; flex: none; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/inter-regular.woff2') format('woff2'); }
.journey-project-link { color: inherit; text-decoration: none; }
/* Figma card 60:6442; each card can set its own content-driven media ratio. */
.journey-project-card { --project-media-ratio: 233 / 191; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 12px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 2px; overflow: hidden; background: #131313; box-shadow: none; }
.journey-intive-card { --project-media-ratio: 2 / 1; }
.journey-project-caption { display: block; padding-left: 4px; font-family: 'Inter', sans-serif; font-size: var(--text-label); font-weight: 400; line-height: var(--leading-label); text-wrap: pretty; overflow-wrap: break-word; color: #fcfcfc; }
.journey-project-link:focus-visible { outline: 2px solid #7aa9ff; outline-offset: 4px; }
.journey-slideshow { display: block; position: relative; overflow: hidden; aspect-ratio: var(--project-media-ratio); background: #d9d9d9; }
.journey-slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(10px); transition: opacity 650ms ease, filter 650ms ease; }
.journey-slideshow img.is-active { opacity: 1; filter: blur(0); }
.journey-slideshow .microsoft-cover { object-position: top; transform: scale(1.12); transform-origin: top center; }
.journey-slideshow .microsoft-screens { object-position: bottom; }
.journey-slideshow .microsoft-bot { object-fit: cover; object-position: center; }
@media (min-width: 761px) {
  .portfolio-page[data-view="journey"] .journey-controls { display: flex; }
}
@media (max-width: 760px) {
  .view-toolbar { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-slideshow img { transition: none; }
}

.journey-project-card .journey-project-caption { display: block; }
.journey-project-card .journey-media-trigger { border-radius: 0; aspect-ratio: var(--project-media-ratio); }
.journey-project-card .journey-media-trigger img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.journey-project-image, .journey-project-video { display: block; width: 100%; height: auto; aspect-ratio: var(--project-media-ratio); object-fit: cover; background: #090909; }
.journey-project-video { object-fit: contain; pointer-events: none; }
.journey-project-card-small { flex-direction: row; align-items: center; justify-content: space-between; width: min(230px, 100%); margin-top: 12px; padding: 16px 12px; }
.journey-project-card-small > [aria-hidden] { color: #939393; }

.journey-project-visual { display: block; position: relative; overflow: hidden; aspect-ratio: var(--project-media-ratio); }
.journey-project-visual > img, .journey-project-visual > video { height: 100%; aspect-ratio: auto; object-fit: cover; }

.journey-small-card-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.journey-small-card-label .journey-project-caption { padding-left: 0; }

.journey-slideshow .microsoft-teams { object-fit: contain; background: #fff; }

.journey-slideshow .intive-chat { object-fit: contain; background: #d0d8e7; }

/* Figma-style canvas (journey-canvas.js): decorative, desktop only. */
.journey { --canvas-blue: #0d99ff; --canvas-red: #f24822; --canvas-spring: cubic-bezier(.34, 1.56, .64, 1); }
.journey-frame-name { display: flex; align-items: center; gap: 5px; margin: 0 13px 6px; font: 400 11px/1.4 'Inter', sans-serif; color: #ffffff66; transition: color var(--motion-hover) ease; }
.journey-frame-name::before { content: '#'; font: 500 12px 'Geist Mono', monospace; opacity: .8; }
.journey-chapter.is-current .journey-frame-name { color: var(--canvas-blue); }
.journey-canvas { position: absolute; z-index: 2; inset: 0; overflow: visible; pointer-events: none; fill: none; }
.journey-canvas text { font: 400 11px 'Inter', sans-serif; fill: #fff; }
.journey-selection-frame { stroke: var(--canvas-blue); stroke-width: 1.5; }
.journey-selection-handle { fill: #fff; stroke: var(--canvas-blue); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; }
.journey-selection-size rect { fill: var(--canvas-blue); }
.journey-spacing path { stroke: var(--canvas-red); }
.journey-spacing rect { fill: var(--canvas-red); }
.journey-spacing text { font-size: 10.5px; }
/* Each new chapter: the frame appears, handles spring in one by one, the size slides up. */
.journey-selection.is-entering .journey-selection-frame { animation: canvas-fade 160ms ease both; }
.journey-selection.is-entering .journey-selection-handle { animation: canvas-pop 420ms var(--canvas-spring) calc(80ms + var(--handle) * 45ms) both; }
.journey-selection.is-entering .journey-selection-size { animation: canvas-rise 420ms var(--canvas-spring) 220ms both; }
@keyframes canvas-fade { from { opacity: 0; } }
@keyframes canvas-pop { from { transform: scale(0); } }
@keyframes canvas-rise { from { opacity: 0; transform: translateY(-6px); } }
.journey-time-ruler { position: absolute; left: 0; bottom: 18px; overflow: visible; pointer-events: none; }
.journey-time-ruler text { font: 10.5px 'Geist Mono', monospace; }
.journey-time-base { stroke: #ffffff26; }
.journey-time-minor { stroke: #ffffff1f; }
.journey-time-major { stroke: #ffffff59; }
.journey-time-label { fill: #5a5a5a; transition: fill 300ms ease; }
.journey-time-label.is-current { fill: var(--canvas-blue); }
.journey-time-label.is-replaced { opacity: 0; }
.journey-time-band rect { fill: var(--canvas-blue); fill-opacity: .14; }
.journey-time-band path { stroke: var(--canvas-blue); }
.journey-time-band text { fill: var(--canvas-blue); }
@media (prefers-reduced-motion: reduce) {
  .journey-selection.is-entering * { animation: none; }
}
@media (max-width: 760px) {
  .journey-frame-name, .journey-canvas, .journey-time-ruler { display: none; }
}
