@font-face {
  font-family: "Micro 5";
  src: url("assets/micro-5.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/google-sans-flex-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/google-sans-flex-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Code";
  src: url("assets/google-sans-code.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: #fff; color: #000; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px 0;
  font-family: "Google Sans Flex", Arial, sans-serif;
  font-variation-settings: "GRAD" 0, "ROND" 0, "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

.portfolio { width: min(800px, 100%); }
.intro { max-width: 600px; display: grid; grid-template-columns: 47px minmax(0, 1fr); align-items: flex-start; column-gap: 32px; padding-left: 16px; }
.intro-avatar { width: 47px; height: 61px; overflow: hidden; }
.intro-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-copy { min-width: 0; }
h1 { margin: 0 0 20px; font-size: 24px; line-height: 1.3; font-weight: 500; }
.intro h1 { margin: 0 0 4px; font-family: "Google Sans Flex", Arial, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.6px; opacity: 1; }
.details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  /* max-width: 403px; */
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.details li { white-space: nowrap; letter-spacing: -0.3px; }
.details li:nth-child(1) { font-family: "Grape Nuts", cursive; }
.details li:nth-child(2) { font-family: "Instrument Serif", serif; }
.details li:nth-child(3) { font-family: "Emblema One", cursive; }
.details li:nth-child(4) { font-family: "Iansui", sans-serif; }
.details li:nth-child(5) { font-family: "Gruppo", sans-serif; letter-spacing: 0.5px; }
.details li:nth-child(6) { font-family: "Heiti SC", "PingFang SC", sans-serif; letter-spacing: 0; font-size: 15px; }
.details li:nth-child(7) { font-family: "Gveret Levin", cursive; }
.details li:nth-child(8) { font-family: "Glegoo", serif; font-size: 15px;}
.details li:nth-child(9) { font-family: "Gotu", sans-serif; }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 72px; }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.work > img:last-child { aspect-ratio: 233 / 217; }
.image-loop { position: relative; aspect-ratio: 1; overflow: hidden; min-width: 0; }
.image-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-loop-wide { aspect-ratio: 233 / 217; }
.app-showcase {
  background-color: #f1f1f1;
  container-type: inline-size;
}
.app-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/apps/phone-dock-transparent.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.app-showcase:hover::before, .app-showcase:focus-within::before { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .app-showcase::before { transition: none; } }
.image-loop.app-showcase::after { content: none; display: none; background: none; }
.showcase-app {
  position: absolute;
  top: 49.79675%; width: 19.5122%; height: 19.5122%;
  border-radius: 5.69106cqw;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.showcase-keenai { left: 43.69919%; }
.showcase-oolka { left: 72%; }
.showcase-app-art {
  display: block; position: absolute; inset: 0;
  mask: url('assets/apps/icon-mask.svg') center / 100% 100% no-repeat;
  filter: saturate(0);
  transition: filter 250ms ease;
}
.app-showcase:hover .showcase-keenai .showcase-app-art,
.app-showcase:focus-within .showcase-keenai .showcase-app-art { filter: saturate(1); }
.showcase-keenai .showcase-app-art { background: url('assets/apps/keenai.webp') center / 108.33333% 108.33333%; }
.showcase-oolka .showcase-app-art { background: #1f4dfd; }
.showcase-oolka .showcase-app-art::before {
  content: ''; position: absolute; left: -2.08333%; top: 7.29167%; width: 104.16667%; height: 75%;
  background: url('assets/apps/oolka.webp') left top / 100% 138.88889% no-repeat;
}
.app-showcase:has(.showcase-oolka:hover) .showcase-keenai .showcase-app-art { filter: saturate(0); }
.showcase-oolka:hover .showcase-app-art { filter: saturate(1); }
.showcase-app:hover, .showcase-app:focus-visible { transform: translateY(-2px); }
.showcase-app:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.showcase-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}
.showcase-tooltip { display: inline-flex; align-items: center; gap: 3px; }
.showcase-tooltip i { font-size: 11px; }
.showcase-app:hover .showcase-tooltip,
.showcase-app:focus-visible .showcase-tooltip { opacity: 1; visibility: visible; }
.app-showcase:hover:not(:has(.showcase-oolka:hover, .showcase-oolka:focus-visible)) .showcase-keenai .showcase-tooltip {
  opacity: 1;
  visibility: visible;
}
.app-showcase:hover:not(.showcase-dismissed):not(:has(.showcase-oolka:hover, .showcase-oolka:focus-visible)) .showcase-keenai {
  transform: translateY(-2px);
}
.showcase-dismissed .showcase-app { transform: none; }
.app-showcase.showcase-dismissed .showcase-app .showcase-tooltip { opacity: 0 !important; visibility: hidden !important; }
.app-showcase.showcase-dismissed::before { opacity: 0; }
.app-showcase.showcase-dismissed .showcase-app-art { filter: saturate(0); }
@media (prefers-reduced-motion: reduce) { .showcase-app, .showcase-app-art { transition: none; } }
a.image-loop { display: block; cursor: pointer; }
.image-loop::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(0 0 0 / 42%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.image-loop:hover::after, .image-loop:focus-visible::after { opacity: 1; }
.image-loop:focus-visible { outline: 2px solid #686868; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .image-loop::after { transition: none; }
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  font-family: "Google Sans Flex", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #686868;
}
.categories { display: flex; gap: 40px; }
.social-link { color: inherit; text-decoration: none; }
.social-link:hover, .social-link:focus-visible { color: #000; }
.category-link { display: inline-flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; }
.category-link i { font-size: 12px; transition: transform 200ms ease-in-out; }
.category-link:hover i, .category-link:focus-visible i { transform: translateX(3px); }
.components-link { display: none; }

@media (max-width: 600px) {
  body { padding: 72px 24px; }
  .work { margin-top: 48px; gap: 8px; }
  .details { gap: 12px 20px; }
  .footer { margin-top: 32px; gap: 16px; }
  .categories { gap: 24px; }
}

@media (max-width: 350px) {
  body { padding-inline: 16px; }
  .footer { flex-wrap: wrap; }
}

@media (max-height: 620px) and (min-width: 601px) {
  body { padding-block: 48px; }
}

body.gallery-page { display: block; padding: 72px 24px; }
.case-page { display: block; padding: 72px 40px; visibility: visible; }
.case-study { width: min(1000px, 100%); margin: 0 auto; animation: gallery-enter 450ms ease both; }
.case-page.case-ai .case-study { animation: none; }
.case-header { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 48px; }
.case-header .back-link { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 6px; }
.case-header .back-link i { font-size: 16px; }
.case-page.case-recent .case-header::before,
.case-page.case-ai .case-header::before { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.case-header::before { content: none; }
.case-page.case-recent .case-header { justify-content: space-between; }
.case-page.case-recent .case-header::before { content: "Recent work"; display: block; font-family: "Google Sans Flex", Arial, sans-serif; font-size: 24px; line-height: 1.3; font-weight: 500; }
.case-page.case-ai .case-header { justify-content: space-between; }
.case-page.case-ai .case-header::before { content: "AI explorations"; display: block; font-family: "Google Sans Flex", Arial, sans-serif; font-size: 24px; line-height: 1.3; font-weight: 500; }
.case-page .back-link { font-size: 0; }
.case-page .back-link::after { content: "Back to home"; font-size: 14px; }
.case-page .case-header + .case-hero { margin-top: 0; }
.case-header h1 { margin: 0; font-family: "Micro 5", sans-serif; font-size: 38px; font-weight: 400; letter-spacing: -1.2px; }
.case-page .case-header h1 { display: none; }
.case-hero, .case-image { display: block; width: 100%; height: auto; }
.ai-video-frame { display: flex; justify-content: center; align-items: center; width: 100%; background: #dfe1ea; overflow: hidden; padding: 48px 0;}
.ai-hero-video { display: block; width: min(640px, 100%); height: auto; }
.ai-hero-video--wide { aspect-ratio: 16 / 9; object-fit: contain; }
.ai-section-video { margin-top: 28px; }
.case-copy { max-width: 650px; margin: 56px auto 72px; color: #686868; font-size: 15px; line-height: 1.45; }
.case-copy h2 { margin: 0 0 14px; color: #111; font-size: 32px; line-height: 1.1; font-weight: 400; }
.case-copy p { margin: 0 0 18px; }
.case-image + .case-image { margin-top: 28px; }
.oolka-reel { position: relative; margin: 0 0 28px; padding: 32px 44px 56px; border-radius: 20px; background: #dfe1ea; overflow: hidden; }
.oolka-reel-viewport { overflow: hidden; width: 100%; }
.oolka-reel-track { display: flex; transition: transform 360ms cubic-bezier(.22,.61,.36,1); }
.oolka-reel-slide { flex: 0 0 100%; display: grid; place-items: center; min-width: 0; }
.oolka-reel-slide video { display: block; width: min(300px, 74vw); aspect-ratio: 9 / 16; object-fit: cover; background: #202020; border-radius: 2px; box-shadow: 0 12px 30px rgba(20,24,45,.16); }
.oolka-reel-slide video.oolka-reel-video--landscape { width: min(500px, 82vw); aspect-ratio: 4 / 3; box-shadow: none; }
.oolka-reel-button { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #222; cursor: pointer; transform: translateY(-50%); }
.oolka-reel-button[hidden] { display: none; }
.oolka-reel-button svg { display: block; width: 12px; height: 12px; }
.oolka-reel-button:hover { background: #fff; }
.oolka-reel-button:disabled { opacity: .38; cursor: default; }
.oolka-reel-button:disabled:hover { background: rgba(255,255,255,.9); }
.oolka-reel-prev { left: 12px; }
.oolka-reel-next { right: 12px; }
.oolka-reel-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.oolka-reel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(30,32,40,.28); cursor: pointer; }
.oolka-reel-dots button.is-active { background: #222; transform: scale(1.2); }
.case-bottom-link { display: none; }
.detail-leaving .case-study, .detail-leaving .portfolio { opacity: 0; transform: translateY(10px); transition: opacity 320ms ease, transform 320ms ease; }
.detail-leaving .case-study > * { opacity: 0; transform: translateY(10px); transition: opacity 320ms ease, transform 320ms ease; }
.detail-link-leaving { opacity: 0; transition: opacity 320ms ease; }
@keyframes home-return { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.home-returning .portfolio { animation: home-return 350ms ease both; }
@media (prefers-reduced-motion: reduce) { .home-returning .portfolio { animation-duration: 0ms; } }
.gallery { max-width: 1000px; margin: 0 auto; animation: gallery-enter 450ms ease both; }
.gallery-header { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 40px; }
.gallery-header .back-link { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 6px; }
.gallery-header .back-link i { font-size: 16px; }
.gallery-header h1 { margin: 0; }
.back-link { color: #686868; font-size: 14px; text-decoration: none; padding: 16px 0;margin-top: 12px; }
.back-link:hover { color: #000; }
.back-link:focus-visible { outline: 2px solid #686868; outline-offset: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gallery-item { margin: 0; overflow: hidden; background: #f5f5f5; }
.gallery-item img, .gallery-item video { display: block; width: 100%; height: auto; }
.gallery-bottom-link { display: none; }
.gallery-top-button { position: fixed; z-index: 20; left: 50%; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; border: 0; border-radius: 50%; background: #111; color: #fff; font: 24px/1 Arial, sans-serif; cursor: pointer; transform: translateX(-50%); box-shadow: 0 4px 14px rgb(0 0 0 / 18%); }
.gallery-top-button:hover { background: #333; }
.gallery-top-button[hidden] { display: none; }
@keyframes gallery-enter { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  body.gallery-page { padding: 40px 16px; }
  .intro h1 { margin: 0px 0 6px; }
  .details { line-height: 1; }
  .work { grid-template-columns: 1fr; }
  .work > .image-loop:not(.app-showcase)::after { inset: auto 0 0; height: 52px; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px 12px; background: linear-gradient(to top, rgb(0 0 0 / 45%), rgb(0 0 0 / 0%)); font-size: 14px; text-align: left; opacity: 1; }
  .app-showcase.showcase-bottom-active .showcase-keenai { transform: translateY(-2px); }
  .app-showcase.showcase-bottom-active .showcase-keenai .showcase-app-art { filter: saturate(1); }
  .app-showcase.showcase-bottom-active .showcase-keenai .showcase-tooltip { opacity: 1; visibility: visible; }
  .showcase-oolka.showcase-oolka-open .showcase-tooltip { opacity: 1; visibility: visible; }
  .app-showcase.showcase-dismissed .showcase-keenai .showcase-app-art { filter: saturate(0) !important; }
  .app-showcase.showcase-dismissed .showcase-keenai .showcase-tooltip { opacity: 0 !important; visibility: hidden !important; }
  .app-showcase.showcase-dismissed .showcase-oolka:not(.showcase-oolka-open) .showcase-app-art { filter: saturate(0) !important; }
  .app-showcase.showcase-dismissed .showcase-oolka.showcase-oolka-open .showcase-app-art { filter: saturate(1) !important; }
  .app-showcase.showcase-dismissed .showcase-oolka.showcase-oolka-open .showcase-tooltip { opacity: 1 !important; visibility: visible !important; }
  .gallery-header { margin-bottom: 28px; }
  .gallery-header { justify-content: space-between; }
  .gallery-header .back-link { font-size: 0; }
  .gallery-header .back-link::after { content: "Back"; font-size: 14px; }
  .gallery-header h1 { margin-left: auto; text-align: right; }
  .gallery-grid, .gallery-column { gap: 8px; }
  .case-page { padding: 36px 16px 64px; }
  .case-header { align-items: center; flex-direction: row; justify-content: center; gap: 16px; margin-bottom: 24px; }
  .case-page .back-link::after { content: "Back"; }
  .case-page.case-recent .case-header,
  .case-page.case-ai .case-header { justify-content: space-between; }
  .case-page.case-recent .case-header::before,
  .case-page.case-ai .case-header::before { left: auto; right: 0; transform: none; }
  .case-header h1 { font-size: 34px; }
  .case-copy { margin: 36px auto 48px; }
  .oolka-reel { margin-inline: -2px; padding: 20px 34px 48px; border-radius: 16px; }
  .oolka-reel-button { width: 30px; height: 30px; }
  .gallery-arriving .gallery-item[data-position="5"],
  .gallery-arriving .gallery-item[data-position="6"],
  .gallery-arriving .gallery-item[data-position="7"] { background: transparent; animation: placeholder-enter 200ms ease var(--placeholder-delay) both; }
  .gallery-arriving .gallery-item[data-position="5"] > img,
  .gallery-arriving .gallery-item[data-position="5"] > video,
  .gallery-arriving .gallery-item[data-position="6"] > img,
  .gallery-arriving .gallery-item[data-position="6"] > video,
  .gallery-arriving .gallery-item[data-position="7"] > img,
  .gallery-arriving .gallery-item[data-position="7"] > video { opacity: 0; }
  .gallery-reveal .gallery-item[data-position="5"] > img,
  .gallery-reveal .gallery-item[data-position="5"] > video,
  .gallery-reveal .gallery-item[data-position="6"] > img,
  .gallery-reveal .gallery-item[data-position="6"] > video,
  .gallery-reveal .gallery-item[data-position="7"] > img,
  .gallery-reveal .gallery-item[data-position="7"] > video { animation: gallery-enter 400ms ease both; }
}
@media (prefers-reduced-motion: reduce) { .gallery { animation: none; } }
.gallery-flight { position: fixed; z-index: 10; object-fit: cover; pointer-events: none; }
.gallery-arriving {
  --placeholder-delay: 400ms;
  animation: none;
}
.gallery-arriving .gallery-header {
  animation: gallery-enter 350ms ease both;
  animation-delay: 500ms;
}
.gallery-arriving .gallery-item[data-position="1"] { opacity: 0; }
.gallery-arriving .gallery-item[data-position="2"],
.gallery-arriving .gallery-item[data-position="3"],
.gallery-arriving .gallery-item[data-position="4"] {
  background: transparent;
  animation: placeholder-enter 200ms ease var(--placeholder-delay) both;
}
@keyframes placeholder-enter {
  from { background-color: transparent; }
  to { background-color: #F2F2F2; }
}
.gallery-arriving .gallery-item[data-position="2"] > img,
.gallery-arriving .gallery-item[data-position="3"] > img,
.gallery-arriving .gallery-item[data-position="4"] > img { opacity: 0; }
.gallery-arriving .gallery-selected.gallery-landed { opacity: 1; }
.gallery-reveal .gallery-item[data-position="2"] > img,
.gallery-reveal .gallery-item[data-position="3"] > img,
.gallery-reveal .gallery-item[data-position="4"] > img {
  animation: gallery-enter 400ms ease both;
}
.gallery-reveal .gallery-item[data-position="2"] > img { animation-delay: 0ms; }
.gallery-reveal .gallery-item[data-position="3"] > img { animation-delay: 10ms; }
.gallery-reveal .gallery-item[data-position="4"] > img { animation-delay: 20ms; }
@media (prefers-reduced-motion: reduce) {
  .gallery-arriving .gallery-item:not(.gallery-selected),
  .gallery-arriving .gallery-header,
  .gallery-reveal .gallery-header,
  .gallery-reveal .gallery-item:not(.gallery-selected) > img { animation-duration: 0ms; animation-delay: 0ms; }
}
