:root { --journey-distance: 100svh; --gallery-progress: 0; }
:root { --ink: #f5f5f5; --muted: #9b9b9b; --white: #000; }
.app { z-index: 3; background: transparent; pointer-events: none; }
.home-page { z-index: 2; mix-blend-mode: difference; }
.site-header { --pad-r: 32px; --close: 36px; padding-right: var(--pad-r); }
.site-nav { transition: opacity .25s ease, visibility 0s linear 0s; }
/* About / CV / Contact: page copy scrolls up under a blurred, darkened band behind the header */
.site-header::before {
  position: absolute; z-index: -1; inset: 0 0 -44px 0; content: "";
  background: linear-gradient(to bottom, rgb(0 0 0 / .8), rgb(0 0 0 / .5) 60%, rgb(0 0 0 / 0));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent);
  opacity: 0; pointer-events: none; transition: opacity .38s ease;
}
body.has-shell-overlay .site-header::before { opacity: 1; }
.site-avatar { display: block; flex: none; width: 20px; height: 20px; margin-right: 3px; border-radius: 50%; object-fit: cover; object-position: 50% 40%; background: #222; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
/* ...and the nav links step aside for a single close button at the top right */
body.has-shell-overlay .site-nav { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.site-close {
  position: absolute; top: 50%; right: var(--pad-r); width: var(--close); height: var(--close); margin-top: calc(var(--close) / -2);
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--ink); cursor: pointer;
  visibility: hidden; opacity: 0; transform: scale(.6) rotate(-90deg);
  transition: opacity .25s ease, transform .4s var(--ease), background .2s ease, visibility 0s linear .4s;
}
.site-close i { position: absolute; top: 50%; right: 30%; left: 30%; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.site-close i + i { transform: rotate(-45deg); }
.site-close:hover { background: rgb(255 255 255 / .18); }
.site-close:active { transform: scale(.92); }
body.has-shell-overlay .site-close { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease .08s, transform .55s var(--ease) .04s, background .2s ease; }
@media (prefers-reduced-motion: reduce) { .site-nav, .site-header::before, .site-close { transition-duration: 1ms !important; transition-delay: 0ms !important; } }
/* Contact links: a soft underline on hover only (the words are inline-blocks for the reveal, which a
   link's underline doesn't reach, so the word carries it). Touch screens get none: no sticky hover. */
.contact-copy a:hover { text-decoration: none; }
@media (hover: hover) {
  /* the link underlines the spaces between words, each word underlines itself: one continuous line */
  .contact-copy a:hover,
  .contact-copy a:hover .overlay-word { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-decoration-thickness: 2px; text-underline-offset: .1em; text-decoration-skip-ink: none; }
}
.contact-links a.is-copied { text-decoration: none !important; }
.contact-links a.is-copied .overlay-word,
.contact-links a[aria-disabled="true"] .overlay-word { text-decoration: none !important; }
/* "✓ COPIED": the check sits on the left; label swaps fade in out of a slight blur */
.contact-links a { white-space: nowrap; }
.copy-check { display: inline-block; width: .62em; height: .49em; margin-right: .14em; vertical-align: .04em; overflow: visible; }
.copy-check path { fill: none; stroke: currentColor; stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 28; stroke-dashoffset: 0; animation: copy-draw .45s var(--ease) .08s both; }
.overlay-word.copy-swap { animation: copy-in .38s var(--ease) both; }
@keyframes copy-in { from { opacity: 0; filter: blur(6px); transform: translateY(.06em); } to { opacity: 1; filter: none; transform: none; } }
@keyframes copy-draw { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay-word.copy-swap, .copy-check path { animation: none; } }
.about-overlay, .contact-overlay, .cv-overlay { background: #000000d9; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.overlay-atmosphere { display: none; }
.overlay-word { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(8px); transition: opacity .6s ease var(--reveal-delay, 0ms), filter .7s ease var(--reveal-delay, 0ms), transform .7s var(--ease) var(--reveal-delay, 0ms); }
.overlay-word.is-visible { opacity: 1; filter: none; transform: none; }
.shell-overlay:not(.is-open) .overlay-word { transition: none; }
.contact-overlay { align-items: safe center; overflow-y: auto; overscroll-behavior: contain; padding: 80px 0 64px; }
.hero-copy {
  position: absolute; top: 50%; left: 50%; width: min(530px, calc(100% - 40px));
  margin: 0; padding: 0; text-align: center;
  opacity: clamp(0, calc(1 - var(--gallery-progress) * 2), 1);
  transform: translate(-50%, calc(-50% - var(--gallery-progress) * 110px));
  pointer-events: none;
}
.hero-title { font-size: clamp(22px, 1.67vw, 26px); font-weight: 500; line-height: 1.12; letter-spacing: -.06em; }
.hero-line { display: inline; white-space: normal; }
.hero-contact { margin-top: 8px; pointer-events: auto; }
.hero-contact::after { display: none; }
.hero-contact:hover span, .hero-contact:focus-visible span { width: 0; margin-left: 0; }
.site-nav button[aria-expanded="true"]::after { transform: scaleX(1); }
.work-timeline .tick, .work-timeline .tick.major { background: #606060; }
.work-timeline .playhead, .work-timeline .key.is-on { background: #eee; }
.work-timeline .key { background: #666; }
.work-caption button { color: #ddd; }
.cv-scroll { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(104px, 13.75vh, 121px) 24px 100px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.cv-content { width: min(760px, 100%); margin: 0 auto; font: 400 15px/1.3 var(--sans); letter-spacing: -.035em; }
.cv-bio { font: 600 clamp(24px, 2.25vw, 34px)/1.15 var(--sans); letter-spacing: -.07em; }
.cv-bio p { margin: 0 0 .8em; }
.cv-bio p:last-child { margin-bottom: 0; }
.cv-section { margin-top: 56px; }
.cv-section h3 { margin: 0 0 18px; color: #898989; font-size: 12px; font-weight: 400; }
.cv-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 18px; }
.cv-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #171717; color: #fff; font-size: 22px; font-weight: 700; }
.cv-mark { overflow: hidden; }
.cv-mark img { display: block; height: auto; }
.cv-adobe img { width: 20px; }
.cv-ideo img { width: 24px; }
.cv-uw img { width: auto; height: 32px; }
.cv-custom img { width: 26px; height: 26px; object-fit: contain; }
.cv-entry strong, .cv-entry div > span { display: block; font-weight: 400; }
.cv-entry strong { font-size: 17px; font-weight: 600; letter-spacing: -.05em; }
.cv-entry div > span, .cv-entry time, .cv-date { color: #898989; font-size: 12px; }
.cv-entry time, .cv-date { text-align: right; }
.cv-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: #999; font-size: 13px; line-height: 1.45; }
.cv-skills h4 { border-bottom: 1px solid #333; margin: 0 0 16px; padding-bottom: 8px; color: #ddd; font: inherit; }
.cv-skills p { margin: 0; }
.work-gallery { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
.work-gallery.is-dragging { cursor: grabbing; }
.gallery-board { position: absolute; inset: 0; }
/* Touch: nothing on this site pans sideways, so sideways swipes reach the carousel's and the
   case study's own swipe handlers instead of being claimed (and cancelled) as a browser pan. */
body, .project-scroll, [data-gallery], .gallery-board { touch-action: pan-y pinch-zoom; }
.gallery-tile {
  position: absolute; top: 0; left: 0; width: 400px; aspect-ratio: 16 / 9;
  opacity: 0; will-change: transform, opacity; transform-origin: center; contain: layout style;
}
.tile-open { position: absolute; display: block; width: 100%; height: 100%; border-radius: 10px; }
.tile-creative { position: absolute; inset: 0; border-radius: inherit; }
.tile-creative > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gallery-tools { position: absolute; left: 32px; right: 32px; bottom: 62px; display: flex; justify-content: space-between; gap: 12px; color: #8d8d8d; font: 300 11px/1.4 var(--sans); opacity: calc(1 - var(--gallery-progress) * 3); }
.gallery-tools button { text-decoration: underline; text-underline-offset: 3px; }
.work-controls { position: absolute; z-index: 12; bottom: 80px; left: 50%; width: min(394px, calc(100vw - 40px)); display: grid; justify-items: center; gap: 12px; opacity: var(--gallery-progress); transform: translate(-50%, calc((1 - var(--gallery-progress)) * 30px)); font: 300 12px/1.3 var(--sans); }
.work-controls[inert] { pointer-events: none; visibility: hidden; }
.work-caption { display: flex; align-items: center; justify-content: center; gap: 22px; color: #8d8d8d; }
.work-caption button { padding: 8px; color: #333; }
.work-timeline { width: 100%; }
.work-timeline .ruler { height: 56px; }
.work-timeline .ruler:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.work-timeline .years { margin-top: 0; }
.work-timeline .year { font: 300 12px/1 var(--sans); }
.gallery-return { color: #999; padding: 6px 12px; }
.project-view { position: fixed; z-index: 40; inset: 0; overflow: hidden; background: #eeece9; font-family: var(--sans); opacity: 0; transition: opacity .35s; }
.project-view[hidden] { display: none; }
.project-view.is-open { opacity: 1; }
.project-backdrop { position: absolute; inset: 0; background-position: center; background-size: cover; }
.uses-art-backdrop .project-backdrop { inset: -60px; filter: blur(45px); transform: scale(1.1); }
.project-topbar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: var(--project-ink, #272727); background: #ffffff1a; backdrop-filter: blur(21px); font-size: 10px; }
.project-return { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 50px; color: #272727; background: #f6f6f6; }
.project-arrows { position: absolute; z-index: 3; top: 42%; right: clamp(16px, 6vw, 94px); left: clamp(16px, 6vw, 94px); display: flex; justify-content: space-between; color: var(--project-ink, #272727); pointer-events: none; }
.project-arrows button { min-height: 44px; padding: 12px 8px; font-size: 10px; pointer-events: auto; }
.project-stage { position: absolute; inset: 103px 6vw 178px; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.project-stage img { display: block; width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100svh - 281px); border-radius: 0; object-fit: contain; filter: drop-shadow(0 18px 30px #0000001a); }
.project-is-page .project-stage { bottom: 0; display: block; padding-bottom: 178px; }
.project-is-page .project-stage img { width: min(875px, 100%); max-width: 100%; max-height: none; margin: 0 auto; }
.project-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; background: #121212; color: #f5f5f5; border-radius: 24px 24px 0 0; transform: translateY(calc(100% - 178px)); transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.project-view.notes-open .project-sheet { transform: translateY(0); }
.project-view.notes-open .project-stage { transform: translateY(-70px) scale(.93); }
.project-lip { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 24px; width: 100%; height: 88px; padding: 24px max(32px, 9.8vw) 16px; text-align: left; }
.project-lip-handle { position: absolute; top: 9px; left: calc(50% - 16px); width: 32px; height: 3px; background: #c8c8c8; border-radius: 3px; }
.project-date { color: #888; font-size: 12px; }
.project-title { grid-column: 1; font-size: 18px; font-weight: 600; letter-spacing: -.05em; }
.project-lip-icon { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-left: auto; transition: transform .5s; }
.project-peek { height: 90px; margin: 0; padding: 24px 24px 12px; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.05em; }
.project-peek span { color: #999; }
.notes-open .project-lip-icon { transform: rotate(180deg); }
.project-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 10%; max-height: 45svh; overflow-y: auto; padding: 20px max(32px, 6vw) 45px; font-size: 16px; line-height: 1.5; }
.project-notes[hidden] { display: none; }
.project-notes p { margin: 0; max-width: 45ch; }
.project-notes dl { display: flex; gap: 50px; margin: 0; font-size: 12px; }
.project-notes dt { color: #888; margin-bottom: 5px; }
.project-notes dd { margin: 0; }
.project-placeholder { color: #888; font-size: 13px; }
@media (max-width: 760px) {
  .hero-copy { width: calc(100% - 40px); margin: 0; padding: 0; }
  .hero-title { font-size: clamp(21px, 5.3vw, 26px); }
  .hero-line-first, .hero-line-second { max-width: none; }
  .hero { height: 100%; }
  .gallery-tools { left: 20px; right: 20px; font-size: 10px; }
  .work-controls { bottom: 65px; gap: 12px; }
  .work-caption { gap: 8px; font-size: 11px; }
  .project-topbar { padding: 0 20px; height: 58px; }
  .project-stage { inset: 78px 16px 138px; }
  .project-stage img { max-height: calc(100svh - 216px); }
  .project-is-page .project-stage { bottom: 0; padding-bottom: 138px; }
  .project-sheet { transform: translateY(calc(100% - 138px)); }
  .project-lip { height: 78px; padding: 24px 20px 12px; gap: 4px 12px; }
  .project-peek { height: 60px; padding: 8px 20px 16px; font-size: 17px; }
  .project-arrows { top: auto; bottom: 148px; }
  .project-date { font-size: 10px; }
  .project-notes { grid-template-columns: 1fr; padding: 12px 20px 32px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-entrance] { opacity: 1; filter: none; transform: none; }
  .hero-word { opacity: 1; filter: none; transform: none; animation: none; }
}

/* Scroll-led gallery */
.home-page { mix-blend-mode: normal; }
.hero-copy {
  top: clamp(142px, 21.9svh, 205px); left: clamp(24px, 5.56vw, 80px);
  width: calc(100% - 2 * clamp(24px, 5.56vw, 80px));
  text-align: left; opacity: clamp(0, calc(1 - var(--gallery-progress) * 2.22), 1);
  transform: translateY(calc(var(--gallery-progress) * -400px));
}
.hero-title { font-size: clamp(36px, 4.7vw, 94px); font-weight: 600; line-height: 1.13; letter-spacing: -.08em; }
.hero-line { display: block; white-space: normal; }
/* Slow, Linear-style word reveal: each word blurs and drifts into focus in sequence. */
.hero-word {
  display: inline-block; opacity: 0; filter: blur(18px); transform: translate3d(0, .3em, 0);
  animation: hero-word-in 1.9s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(.5s + var(--word, 0) * 105ms);
  will-change: opacity, filter, transform;
}
@keyframes hero-word-in {
  0% { opacity: 0; filter: blur(18px); transform: translate3d(0, .3em, 0); }
  45% { opacity: .75; }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.hero-contact[data-entrance] { filter: blur(12px); animation-duration: 1.6s; animation-delay: 2.15s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.hero-contact { margin-top: 14px; }
/* Intro copy reads fully white; the arrow always sits beside "Get in touch" and the
   gap opens slightly on hover. */
.hero-title, .hero-title .hero-line, .hero-title .hero-muted, .hero-contact { color: #fff; }
.hero-contact span,
.hero-contact:hover span,
.hero-contact:focus-visible span {
  width: auto; overflow: visible; display: inline-block;
  transition: margin-left .45s cubic-bezier(.16, 1, .3, 1);
}
.hero-contact span { margin-left: 6px; }
.hero-contact:hover span, .hero-contact:focus-visible span { margin-left: 12px; }
.work-gallery { cursor: auto; touch-action: pan-y; }
.gallery-tile { aspect-ratio: auto; contain: layout style; }
.tile-open { overflow: hidden; pointer-events: auto; }
.tile-open > img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.tile-open > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.tile-open > video.is-playing { opacity: 1; }
.gallery-tools { opacity: clamp(0, calc(1 - var(--gallery-progress) * 3), 1); pointer-events: none; }
.carousel-caption {
  position: absolute; z-index: 4; left: 50%; top: calc(50% - min(13.36vw, 230.625px) - 42px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: min(47.5vw, 820px); transform: translateX(-50%); opacity: 0;
  font: 300 12px/1.2 var(--sans); pointer-events: none;
}
.carousel-caption span, .carousel-caption strong { display: block; }
.carousel-caption div > span { color: #888; }
.carousel-caption strong { margin-top: 3px; font-size: 17px; font-weight: 600; letter-spacing: -.05em; }
.carousel-caption > div { min-width: 0; }
.carousel-caption > [data-carousel-date] { margin-left: auto; color: #888; }
/* Expand: opens the project's details (the old case-study page). */
.carousel-expand {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border-radius: 999px; background: rgb(255 255 255 / .1); color: #eee; pointer-events: auto;
  transition: background-color .2s, transform .2s;
}
.carousel-expand:hover { background: rgb(255 255 255 / .18); }
.carousel-expand:active { transform: scale(.94); }
.carousel-expand svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Project details: the case-study copy on a dim, like the CV ---------- */
.details-sheet {
  position: fixed; z-index: 35; inset: 0; visibility: hidden; opacity: 0;
  background: #000000d9; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #f5f5f5; font-family: var(--sans);
  transition: opacity .38s ease, visibility 0s linear .38s;
}
.details-sheet[hidden] { display: none; }
.details-sheet.is-open { visibility: visible; opacity: 1; transition: opacity .38s ease; }
.details-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #333 transparent; touch-action: pan-y;
}
.details-col { position: relative; max-width: calc(100% - 48px); margin: 0 auto; padding-bottom: 96px; }
/* header = the carousel caption's twin (same type, same spot) */
.details-head {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 52px; font: 300 12px/1.2 var(--sans);
}
.details-focus { display: block; color: #888; }
.details-title { display: block; margin-top: 3px; color: #f5f5f5; font-size: 17px; font-weight: 600; letter-spacing: -.05em; }
.details-summary { margin: 0; color: #fff; font: 600 clamp(24px, 2.25vw, 34px)/1.15 var(--sans); letter-spacing: -.07em; }
.details-section { margin-top: 40px; }
.details-section[hidden] { display: none; }
.details-section h3 { margin: 0 0 10px; color: #898989; font-size: 12px; font-weight: 400; }
.details-role { margin: 0; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.05em; }
.details-team { margin: 0; color: #ddd; font-size: 15px; line-height: 1.45; letter-spacing: -.03em; }
.details-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-top: 40px; padding: 0 16px;
  border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s;
}
.details-link[hidden] { display: none; }
.details-link:hover { background: rgb(255 255 255 / .2); }
/* placed by JS exactly over the caption's expand button (same size) */
.details-close {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; padding: 0;
  border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .2s;
}
.details-close:hover { background: rgb(255 255 255 / .22); }
.details-sheet :is(.w2, .rv2) {
  opacity: 0; filter: blur(5px); transform: translateY(8px);
  transition: opacity .42s ease var(--rd, 0ms), filter .5s ease var(--rd, 0ms), transform .55s var(--ease, ease) var(--rd, 0ms);
}
.details-sheet .w2 { display: inline-block; }
.details-sheet.is-revealed :is(.w2, .rv2) { opacity: 1; filter: none; transform: none; }
.details-sheet:not(.is-open) :is(.w2, .rv2) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .details-sheet, .details-sheet :is(.w2, .rv2) { transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
.carousel-controls {
  position: absolute; z-index: 5; left: 50%; bottom: max(72px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 20px; transform: translateX(-50%);
  color: #aaa; font: 300 11px/1 var(--sans); opacity: 0; pointer-events: auto;
}
.carousel-controls button { min-width: 32px; min-height: 32px; color: #eee; font-size: 16px; }
.carousel-controls button:disabled { opacity: .25; cursor: default; }
.carousel-controls[inert], .carousel-caption[inert] { visibility: hidden; }
.project-view { background: #d3c9c1; color: var(--project-ink, #000); }
.project-backdrop { position: fixed; }
.uses-art-backdrop .project-backdrop { inset: -160px; filter: blur(125px) saturate(1.15); transform: scale(1.15); }
.project-backdrop::after { content: ""; position: absolute; inset: 0; background: #ffffff1a; }
.project-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.project-scroll::-webkit-scrollbar { display: none; }
.project-view svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.project-head { background: #0000001a; border-radius: 0 0 24px 24px; }
.project-topbar { position: relative; height: 68px; padding: 0 24px; border-bottom: 1px solid #ffffff1a; background: transparent; backdrop-filter: none; font: 300 12px/1.04 var(--sans); letter-spacing: -.05em; }
.project-return { display: flex; align-items: center; gap: 2px; min-height: 32px; padding: 4px 8px; margin-left: -8px; border-radius: 50px; color: inherit; background: transparent; transition: background-color .3s; }
.project-return:hover { background: #ffffff26; }
.project-view :is(button, a):focus { outline: none; }
.project-view :is(button, a):focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 50px; }
.project-return svg { transition: transform .3s; }
.project-return:hover svg { transform: translateX(-2px); }
.project-nav { display: flex; gap: 16px; align-items: center; opacity: .43; transition: opacity .3s; }
.project-nav:hover { opacity: .8; }
.project-nav button { min-height: 32px; transition: opacity .2s; }
.project-nav:hover button:not(:hover) { opacity: .5; }
.project-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;
  min-height: 251px; padding: 0; border-radius: 0; background: none; backdrop-filter: none;
}
.project-copy { display: flex; flex-direction: column; gap: 24px; padding: 32px 40px 49px; }
.project-intro h2 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: -.04em; opacity: .64; }
.project-intro .project-copy p { max-width: 713px; margin: 0; font-size: 24px; font-weight: 900; line-height: 32px; letter-spacing: -.045em; text-wrap: balance; }
.project-meta { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.project-role { display: grid; gap: 4px; max-width: 273px; font-size: 12px; line-height: 18px; }
.project-role-row { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: -10px; }
.project-role-row span { font-weight: 300; opacity: .64; }
.project-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 300; text-decoration: none; opacity: .64; transition: opacity .3s; }
.project-link[hidden] { display: none; }
.project-link:hover { opacity: 1; }
.project-role strong { font-size: 14px; font-weight: 700; opacity: .64; }
.project-team { max-width: 272px; margin: 0; padding: 7px 0; font-size: 14px; font-weight: 500; line-height: 18px; opacity: .32; }
.project-art-layout {
  display: grid; grid-template-columns: 1fr minmax(0, 875px) 1fr; gap: 24px;
  align-items: start; padding: 43px 3% 120px;
}
.project-art { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; }
.project-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-art.has-embed { aspect-ratio: 1440 / 900; background: #f8f8f8; box-shadow: 0 30px 80px rgb(0 0 0 / .12), 0 0 0 1px rgb(0 0 0 / .04); }
.project-art.has-embed img { height: 100%; object-fit: cover; object-position: center top; }
.project-art iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: calc(100% / var(--embed-scale, .6)); border: 0;
  transform: scale(var(--embed-scale, .6)); transform-origin: 0 0;
  opacity: 0; transition: opacity .6s ease .1s;
}
.project-art iframe.is-loaded { opacity: 1; }
.project-still {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; background: #000; scrollbar-width: none;
}
.project-still::-webkit-scrollbar { display: none; }
.project-art .project-still img { display: block; width: 100%; height: auto; object-fit: initial; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.project-art video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  background: transparent; opacity: 0; transition: opacity .9s cubic-bezier(.22, .8, .24, 1);
}
.project-art video.is-playing { opacity: 1; }
/* Live page: the head stays put and the page window floats in the remaining space,
   40px clear of the head's lip and of the bottom of the viewport. */
.has-live-page .project-head { position: sticky; top: 0; z-index: 3; }
.has-live-page .project-art-layout { padding-top: 40px; padding-bottom: 40px; }
.has-live-page .project-art.has-embed {
  aspect-ratio: auto; height: calc(100vh - var(--project-head-h, 320px) - 80px);
  height: calc(100dvh - var(--project-head-h, 320px) - 80px); border-radius: 12px;
}
/* Short screens (landscape phones, small laptop windows): the head can't stay pinned
   without crushing the window, so it scrolls away and the window takes the screen. */
@media (max-height: 640px) {
  .has-live-page .project-head { position: relative; }
  .has-live-page .project-art.has-embed { height: calc(100dvh - 48px); min-height: 280px; }
}
.project-art-layout button { position: sticky; top: calc(50% - 16px); display: flex; align-items: center; gap: 1px; min-height: 32px; margin-top: calc(50vh - 362px); font: 300 12px/1 var(--sans); letter-spacing: -.05em; transition: opacity .3s, transform .3s; }
.project-art-layout button:first-child { justify-self: center; }
.project-art-layout button:last-child { justify-self: center; }
.project-art-layout button:first-child:hover { transform: translateX(-3px); }
.project-art-layout button:last-child:hover { transform: translateX(3px); }
/* Image and video work: the creative is centred in the space below the head and sized to
   fit it, up to 1040px wide. */
.project-view:not(.has-live-page) .project-art-layout {
  --art-room: calc(100dvh - var(--project-head-h, 320px) - 80px);
  grid-template-columns: 1fr minmax(0, 1040px) 1fr; align-items: center;
  min-height: calc(100dvh - var(--project-head-h, 320px)); padding-top: 40px; padding-bottom: 40px;
}
.project-view:not(.has-live-page) .project-art {
  justify-self: center; width: min(100%, max(320px, var(--art-room)) * var(--art-ratio, 1.6));
}
.project-view:not(.has-live-page) .project-art-layout button { position: static; margin-top: 0; }
/* Full bleed: the work runs edge to edge on black, filling the space below the head. */
.project-view.project-bleeds { background: #000; }
.project-bleeds .project-backdrop { background: #000 !important; filter: none !important; }
.project-bleeds .project-backdrop::after { display: none; }
.project-view.project-bleeds .project-art-layout { position: relative; display: block; min-height: 0; padding: 0; }
.project-view.project-bleeds .project-art {
  width: 100%; border-radius: 0;
  height: min(max(420px, calc(100dvh - var(--project-head-h, 320px))), calc(100vw / var(--art-ratio, 1.78)));
}
.project-view.project-bleeds .project-art.has-embed {
  height: min(max(420px, calc(100dvh - var(--project-head-h, 320px))), calc(100vw / 1.5));
}
/* A little room past the work so every case study scrolls instead of feeling pinned. */
.project-view:not(.has-live-page) .project-scroll::after { content: ""; display: block; height: clamp(72px, 14vh, 160px); }
.project-bleeds .project-art img { width: 100%; height: 100%; object-fit: cover; }
.project-view.project-bleeds .project-art-layout button { position: absolute; z-index: 2; top: calc(50% - 16px); }
.project-bleeds .project-art-layout button:first-child { left: 24px; }
.project-bleeds .project-art-layout button:last-child { right: 24px; }
/* Bleed live scene: the page fills the frame; thin edge strips sit over it so the
   Prev/Next cursor still works at the sides. */
.project-bleeds .project-art.has-embed { aspect-ratio: auto; background: #000; box-shadow: none; }
.project-bleeds .project-art.has-embed img { object-position: center; }
.project-bleeds .project-art.has-embed iframe {
  top: 50%; left: 50%; width: 1440px; height: 960px;
  transform: translate(-50%, -50%) scale(var(--scene-scale, .6)); transform-origin: 50% 50%;
}
.project-bleeds .project-art.has-embed::before,
.project-bleeds .project-art.has-embed::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: max(120px, 14vw);
}
.project-bleeds .project-art.has-embed::before { left: 0; }
.project-bleeds .project-art.has-embed::after { right: 0; }
.project-view.is-open .project-head { animation: project-in .8s cubic-bezier(.22, .8, .24, 1) both; }
.project-view.is-open .project-art { animation: project-in 1s .08s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes project-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
/* Grow from tile: the flying frame stands in for the art, the copy arrives as it lands. */
.project-view.is-grown .project-head { animation-duration: 1s; animation-delay: .42s; }
.project-view.is-grown .project-art { animation: none; }
.project-view.is-morphing .project-art { opacity: 0; }
.project-view.is-morphing .project-scroll { overflow: hidden; }
.morph-ghost { position: fixed; z-index: 45; overflow: hidden; pointer-events: none; box-shadow: 0 24px 60px rgb(0 0 0 / .18); will-change: left, top, width, height, opacity; }
.morph-ghost img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.morph-ghost.is-page img { object-position: center top; }
.morph-ghost img + img { opacity: 0; }
.tile-open.is-lifted { opacity: 0; }
/* Prev / Next: the outgoing page dissolves (backdrop included) over the incoming one. */
.project-swap-ghost { position: fixed; z-index: 41; inset: 0; overflow: hidden; pointer-events: none; }
.project-swap-ghost .project-scroll { overflow: hidden; }
.project-swap-ghost * { animation: none !important; }
.project-swap-ghost :is(.project-copy, .project-meta, .project-art) {
  animation: project-swap-out .6s cubic-bezier(.4, 0, .2, 1) both !important;
}
@keyframes project-swap-out { to { opacity: 0; transform: translateX(calc(var(--swap-dir, 1) * -18px)) scale(.985); filter: blur(10px); } }
.project-view.is-open.is-switching :is(.project-copy, .project-meta, .project-art) { animation: project-swap 1s .14s cubic-bezier(.22, .8, .24, 1) both; }
.project-view.is-open.is-switching .project-meta { animation-delay: .2s; }
.project-view.is-open.is-switching .project-art { animation-delay: .24s; }
@keyframes project-swap { from { opacity: 0; transform: translateX(calc(var(--swap-dir, 1) * 18px)) scale(.985); filter: blur(10px); } }
.project-cursor { position: fixed; top: 0; left: 0; z-index: 20; color: var(--project-ink, #000); pointer-events: none; will-change: transform; }
.project-cursor-pill {
  display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 14px;
  border-radius: 50px; background: color-mix(in srgb, var(--project-ink, #000) 7%, rgb(255 255 255 / .16));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); backdrop-filter: blur(20px) saturate(1.4);
  font: 300 12px/1 var(--sans); letter-spacing: -.05em; white-space: nowrap;
  opacity: 0; filter: blur(6px); transform: translate(-50%, -50%) scale(.6);
  transition: opacity .35s, filter .35s, transform .5s cubic-bezier(.22, .8, .24, 1);
}
.project-cursor.is-next svg { order: 3; }
.project-cursor.is-visible .project-cursor-pill { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1); }
.project-cursor.is-visible svg { animation: cursor-nudge 1.8s ease-in-out infinite; }
.project-cursor.is-prev svg { --nudge: -2px; }
.project-cursor.is-pressed .project-cursor-pill { animation: cursor-press .4s cubic-bezier(.22, .8, .24, 1); }
@keyframes cursor-nudge { 50% { transform: translateX(var(--nudge, 2px)); } }
@keyframes cursor-press { 40% { transform: translate(-50%, -50%) scale(.88); } }
.project-view.has-side-cursor, .project-view.has-side-cursor * { cursor: none; }
.project-pager { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .project-art-layout button { opacity: 0; pointer-events: none; }
  .project-art-layout button:focus-visible { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .project-swap-ghost, .morph-ghost { display: none; }
  .project-cursor-pill { transition: opacity .2s; filter: none; }
  .project-cursor.is-visible svg { animation: none; }
}
@media (max-width: 760px) {
  .hero-copy { top: 17svh; width: calc(100% - 40px); left: 20px; opacity: clamp(0, calc(1 - var(--gallery-progress) * 4.5), 1); }
  .gallery-board { -webkit-mask-image: linear-gradient(transparent 44px, #000 104px); mask-image: linear-gradient(transparent 44px, #000 104px); }
  .hero-title { font-size: clamp(32px, 8.5vw, 54px); }
  .carousel-caption { top: calc(50% + 10px - (100vw - 48px) * 9 / 32 - 46px); width: calc(100vw - 48px); }
  .carousel-caption strong { font-size: 15px; }
  .carousel-controls { bottom: max(62px, env(safe-area-inset-bottom)); }
  .project-topbar { padding: 0 16px; }
  .project-nav { gap: 14px; }
  .project-intro { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .project-copy { padding: 20px 20px 4px; gap: 12px; }
  .project-intro .project-copy p { font-size: 17px; line-height: 22px; }
  .project-meta { gap: 8px; padding: 8px 20px 12px; }
  .project-art-layout { grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 16px calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .project-art { grid-column: 1 / -1; grid-row: 1; }
  .project-art-layout button { position: static; margin-top: 0; }
  .project-art-layout button:last-child { justify-self: end; }
  .project-art-layout button:first-child { justify-self: start; }
  .project-view:not(.has-live-page) .project-art-layout { grid-template-columns: 1fr 1fr; min-height: 0; padding: 24px 16px calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .project-view:not(.has-live-page) .project-art { width: 100%; }
  .project-view.project-bleeds .project-art-layout { display: grid; padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .project-view.project-bleeds .project-art { width: auto; height: auto; margin: 0 -16px; aspect-ratio: var(--art-ratio, 1.78); }
  .project-view.project-bleeds .project-art.has-embed { height: auto; aspect-ratio: 3 / 2; }
  .project-view.project-bleeds .project-art-layout button { position: static; }
  .project-bleeds .project-art.has-embed::before, .project-bleeds .project-art.has-embed::after { display: none; }
  /* Mobile case studies: copy stacked over the work; swipe sideways to change project. */
  .project-scroll { touch-action: pan-y; }
  /* The pager replaces the inline Prev/Next: always on screen, so swiping reads as obvious. */
  .project-view .project-art-layout > button { display: none; }
  .project-pager {
    position: absolute;
    z-index: 15;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    left: 50%;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgb(18 18 18 / .55);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 6px 24px rgb(0 0 0 / .18), inset 0 0 0 1px rgb(255 255 255 / .08);
    color: #fff;
    font: 400 12px/1 var(--sans);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    transform: translateX(-50%);
    transition: opacity .3s ease;
  }
  .project-view.is-morphing .project-pager { opacity: 0; pointer-events: none; }
  .project-pager span { min-width: 4.6em; text-align: center; }
  .project-pager button { display: grid; width: 36px; height: 36px; border-radius: 999px; color: rgb(255 255 255 / .6); place-items: center; transition: color .16s, transform .16s; }
  .project-pager button:active { color: #fff; transform: scale(.88); }
  .project-pager button:focus-visible { outline: none; }
  .project-view:not(.has-live-page) .project-scroll::after { display: none; }
  .has-live-page .project-head { position: relative; }
  .has-live-page .project-art-layout { padding-top: 24px; }
  .has-live-page .project-art.has-embed { height: 72dvh; }
  .cv-scroll { padding: 92px 20px 64px; }
  .cv-bio { font-size: clamp(22px, 6.2vw, 28px); }
  .cv-skills { grid-template-columns: 1fr 1fr; }
}
