:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --ink: #141414;
  --paper: #fdfdfd;
  --hero-end: 753px;
}
* { box-sizing: border-box; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #7a83c6; outline-offset: 4px; }
.backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--hero-end);
  background: #111 url("assets/hero.webp") center top / cover no-repeat;
}
.header { position: relative; z-index: 2; height: 99px; text-align: center; color: white; }
.brand { display: inline-block; position: relative; margin-top: 41px; font-size: 20px; text-transform: uppercase; }
.brand::after { content: ""; display: block; margin: 5px auto 0; width: 25px; border-bottom: 1px solid #fff9; }
.header-controls {
  position: fixed; z-index: 6; top: 33px; right: max(30px, 4.3vw);
  display: flex; align-items: center; gap: 1px; color: #fff; font-size: 12px;
}
.menu { position: relative; text-align: left; }
.language-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 32px; padding: 5px 11px; border-radius: 999px; background: #000;
}
.menu summary {
  display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 32px;
  padding: 6px 10px; border-radius: 999px; background: black; cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; display: inline-block; width: 14px; height: 12px; }
.menu-icon > span {
  position: absolute; top: 5.5px; inset-inline: 0; height: 1px; background: currentColor;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.menu-icon > span:first-child { transform: translateY(-4px); }
.menu-icon > span:last-child { transform: translateY(4px); }
.menu[open] .menu-icon > span:first-child { transform: rotate(45deg); }
.menu[open] .menu-icon > span:nth-child(2) { opacity: 0; }
.menu[open] .menu-icon > span:last-child { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-icon > span { transition: none; } }
.menu nav {
  position: absolute; right: 0; top: 38px; min-width: 138px;
  padding: 5px; border: 1px solid #ffffff40; border-radius: 10px; background: #141414;
}
.menu nav a { display: block; padding: 9px 12px; border-radius: 6px; }
.menu nav a:hover, .menu nav a:focus-visible { background: #343434; }
.intro { height: 468px; display: flex; flex-direction: column; align-items: center; color: white; }
.axis { width: 1px; background: #fff9; }
.axis-top { height: 166px; }
.axis-bottom { height: 93px; margin-top: 48px; }
.intro h1 { margin: 30px 20px 0; text-align: center; font-weight: 400; font-size: 12px; line-height: 16px; }
.platforms {
  display: flex; align-items: center; justify-content: center; gap: 21px;
  padding: 0 12px; margin: 55px 0 0; height: 20px; list-style: none;
}
.platforms img { display: block; height: auto; width: 100%; }
.platforms li { width: 84px; }
.platforms li:nth-child(2) { width: 74px; }
.platforms li:nth-child(3) { width: 94px; }
.platforms li:nth-child(4) { width: 100px; }
.process { padding: 0 12px 100px; }
.diagram { position: relative; width: min(100%, 800px); aspect-ratio: 800 / 650; margin-inline: auto; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; }
.wire-light { stroke: #eee; }
.wire-dark { stroke: #292929; }
.dot-light { fill: #fff; }
.dot-dark { fill: #171717; }
.dashed { stroke-dasharray: 1.2 1.2; }
.wires-mobile { display: none; }
.steps { padding: 0; margin: 0; list-style: none; }
.node {
  position: absolute; display: flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 47px; padding: 5px 10px; border: 1px solid #222a; border-radius: 15px;
  background: var(--paper); font-size: 12px; font-weight: 400; white-space: nowrap;
}
.node img { display: block; width: auto; height: 13px; max-width: 44px; object-fit: contain; }
.node img[alt="Google Meet"], .node img[alt="Miro"], .node img[alt="Figma"] { height: 15px; }
.node span { margin-left: 4px; }
.idea {
  top: 0; left: 50%; width: 116px; transform: translateX(-50%);
  margin: 0; color: #fff; border-color: #fff9; background: #ffffff0b;
}
.call, .prototype, .design, .seo { top: 46.923%; }
.call { left: 7.125%; width: 12.375%; }
.prototype { left: 25.875%; width: 23.5%; }
.design { left: 63.25%; width: 12.875%; }
.seo { left: 77%; width: 21.75%; }
@media (max-width: 824px) {
  :root { --hero-end: 555px; }
  .header { height: 80px; }
  .brand { margin-top: 27px; font-size: 16px; }
  .header-controls { top: 23px; right: 16px; }
  .menu summary { gap: 8px; }
  .backdrop { background-position: 62% top; }
  .intro { height: 345px; }
  .axis-top { height: 95px; }
  .intro h1 { margin-top: 26px; }
  .platforms { gap: 12px; margin-top: 34px; max-width: 100%; }
  .platforms li { max-width: 19vw; }
  .axis-bottom { height: 70px; margin-top: 35px; }
  .process { padding-bottom: 55px; }
  .diagram { width: min(100%, 540px); height: 390px; aspect-ratio: auto; }
  .wires-desktop { display: none; }
  .wires-mobile { display: block; }
  .node { gap: 5px; min-height: 48px; padding: 5px 6px; }
  .node span { margin-left: 2px; }
  .call, .prototype, .design, .seo { transform: translateX(-50%); }
  .call, .prototype { top: 152px; }
  .design, .seo { top: 266px; }
  .call, .design { left: 23.0556%; width: 82px; }
  .prototype, .seo { left: 76.9444%; width: min(46%, 164px); }
  .node img { max-width: 35px; }
}


/* Leave an 8px gap before the idea node. */
.axis-bottom { flex: 1 0 0; margin-bottom: 8px; }


  .intro-playing .intro, .intro-playing .brand { --intro-ease: cubic-bezier(.37, 0, .25, 1); }

  .intro-playing .brand > span {
    display: inline-block;
    animation: intro-appear 1.05s var(--intro-ease) both;
  }

  .intro-playing .brand::after {
    animation: intro-line-x .62s .88s var(--intro-ease) both;
  }

  .intro-playing .axis {
    transform-origin: top;
    animation: intro-line-y .95s var(--intro-ease) both;
  }

  .intro-playing .axis-top { animation-delay: 1.42s; }
  .intro-playing .intro h1 { animation: intro-appear .85s 2.24s var(--intro-ease) both; }

  .intro-playing .platforms li {
    animation: intro-appear .9s calc(2.58s + var(--logo-delay, 0ms)) var(--intro-ease) both;
  }

  .intro-playing .platforms li:nth-child(2) { --logo-delay: 75ms; }
  .intro-playing .platforms li:nth-child(3) { --logo-delay: 150ms; }
  .intro-playing .platforms li:nth-child(4) { --logo-delay: 225ms; }
  .intro-playing .axis-bottom { animation-delay: 3.59s; }

  .intro-playing .brand:focus-visible > span { animation: none; }
@keyframes intro-appear {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-line-x {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes intro-line-y {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}





.intro-playing:not(.routes-playing) .arrival-dot { visibility: hidden; }
.routes-playing .arrival-dot { visibility: hidden; }
.routes-playing .arrival-dot.is-traveling { visibility: visible; }
.arrival-dot.on-dark-surface { fill: #fff; }

.idea { isolation: isolate; overflow: hidden; }
.idea::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #28272f url("assets/hero.webp") 72% 47% / 340% auto no-repeat;
  opacity: 0;
  pointer-events: none;
}
.idea-playing .idea::before { animation: idea-glimmer .9s var(--intro-ease, ease-in-out) both; }

@keyframes idea-glimmer {
  0% { opacity: 0; background-position: 64% 46%; }
  45% { opacity: .95; }
  100% { opacity: 0; background-position: 83% 50%; }
}

.intro-playing .lower-dot { visibility: hidden; }
.intro-playing .lower-dot.is-traveling { visibility: visible; }

.node:has(.step-control) { padding: 0; }
.step-control {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 45px; padding: 5px 10px; border: 0; border-radius: inherit;
  background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer;
}
.node.is-highlighted { border-color: #7a7198; background: #f2eff8; }
.route-highlight {
  opacity: 0; fill: none; stroke: #8a78b3; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; transition: opacity .35s ease;
}
.route-highlight-lower { stroke-dasharray: 2 2; }
.route-highlight.is-highlighted { opacity: 1; }

.process { padding-bottom: 0; }
.selected-work {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 88px) clamp(24px, 10vw, 145px);
  width: min(100% - 32px, 1000px);
  margin: 9px auto 90px;
}
.selected-work h2 {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.selected-work figure { margin: 0; }
.selected-work figure:nth-of-type(even) { margin-top: clamp(28px, 9vw, 130px); }
.selected-work img { display: block; width: 100%; height: auto; border-radius: clamp(7px, 1.15vw, 16px); background: #eee; }
.selected-work figcaption { margin-top: 9px; font-size: 12px; line-height: 16px; }

.work-arrived .selected-work h2 {
  animation: work-arrival 1.2s cubic-bezier(.37, 0, .25, 1) both;
}


@keyframes work-arrival {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 824px) { .step-control { gap: 5px; padding-inline: 6px; } }
@media (prefers-reduced-motion: reduce) { .route-highlight { transition: none; } }
.wires path[data-highlight] { transition: stroke .35s ease, stroke-width .35s ease; }
.wires path[data-highlight].is-highlighted { stroke: #8a78b3; stroke-width: 2; stroke-dasharray: 2 2; }
@media (prefers-reduced-motion: reduce) { .wires path[data-highlight] { transition: none; } }





.menu summary, .menu-icon { animation: none; transition: none; }
.website-list { width: min(100% - 32px, 1000px); margin: 0 auto 80px; scroll-margin-top: 24px; }
.website-list h2 { margin: 0 0 22px; font-size: 12px; font-weight: 400; }
.website-list ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dedede; }
.website-list li { border-bottom: 1px solid #dedede; }
.website-list li a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 12px; align-items: center;
  padding: 12px 8px; min-height: 48px; font-size: 12px;
}
.website-list li a:hover { background: #f2f2f2; }
.website-list li a span:last-child { color: #616161; font-size: 11px; text-align: right; }
.portfolio-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 24px 0 36px; width: min(100% - 32px, 1000px); margin: auto;
  border-top: 1px solid #dedede; font-size: 12px;
}
.portfolio-footer > a:first-child { text-transform: uppercase; }
.portfolio-footer > a:last-child { justify-self: end; }
.portfolio-footer > span { text-align: center; color: #616161; }
.browser-notice {
  position: fixed; z-index: 5; right: 16px; bottom: 16px; width: min(325px, calc(100% - 32px));
  padding: 14px; border: 1px solid #dedede; border-radius: 12px; background: #fff; color: #141414;
  font-size: 12px; line-height: 1.45; box-shadow: 0 8px 32px #0002;
}
.browser-notice h2 { margin: 0; font-size: 12px; }
.browser-notice p { margin: 6px 0 12px; color: #444; }
.browser-notice button {
  border: 0; border-radius: 5px; padding: 6px 10px; background: #141414; color: #fff;
  font: inherit; cursor: pointer;
}
@media (max-width: 500px) {
  .portfolio-footer { grid-template-columns: 1fr 1fr; }
  .portfolio-footer > span { grid-row: 2; grid-column: 1 / -1; text-align: left; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.website-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0; border: 0; margin: 0 0 18px;
}
.website-filters[hidden] { display: none; }
.website-filters label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 5px 12px; border: 1px solid #222a;
  border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 12px; cursor: pointer;
  transition: background-color .35s ease, border-color .35s ease;
}
.website-filters label:hover { border-color: #7a7198; background: #f2eff8; }
.website-filters label:has(:checked) { border-color: #7a7198; background: #eae4f3; }
.website-filters input { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); }
.website-filters label:has(:focus-visible) { outline: 2px solid #7a83c6; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .website-filters label { transition: none; } }
.filter-empty { color: #616161; margin: 12px 0 0; font-size: 12px; }


.website-preview {
  position: fixed; z-index: 7; inset: 0 auto auto 0;
  width: min(310px, calc(100vw - 32px)); aspect-ratio: 11 / 7;
  overflow: hidden; border-radius: 12px; background: #fff;
  border: 1px solid #dedede; box-shadow: 0 14px 42px #0003;
  pointer-events: none; opacity: 0; transition: opacity .28s ease;
}
.website-preview.is-visible { opacity: 1; }
.website-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: reduce) { .website-preview { transition: none; } }


.mockup-frame { position: relative; overflow: hidden; border-radius: clamp(7px, 1.15vw, 16px); }
.mockup-motion .selected-work figure:not(.mockup-visible) { opacity: 0; }

.mockup-motion .mockup-visible .mockup-frame {
  animation: mockup-enter .95s cubic-bezier(.22,1,.36,1) both;
}
.mockup-motion .mockup-visible .mockup-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #241d18; transform-origin: right;
  animation: mockup-shutter .95s cubic-bezier(.7,0,.24,1) both;
}
.mockup-motion .mockup-visible figcaption {
  animation: mockup-caption .76s .14s cubic-bezier(.22,1,.36,1) both;
}
@keyframes mockup-enter {
  from { opacity: .5; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes mockup-shutter {
  0%, 12% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes mockup-caption {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 500px) {
  .header { text-align: left; padding-left: 16px; }
}


/* Keep the movement within the dark opening of the page. */
.backdrop { overflow: hidden; }
.backdrop::before {
  content: "";
  position: absolute;
  inset: -9%;
  background: radial-gradient(ellipse at 72% 47%, #b8a7ec49, transparent 43%),
              radial-gradient(ellipse at 91% 57%, #e5ad8240, transparent 31%),
              url("assets/hero.webp") center top / cover no-repeat;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .backdrop::before { animation: backdrop-drift 9.6s ease-in-out both; }
}
@keyframes backdrop-drift {
  0% { opacity: 0; transform: translate3d(3%, -2%, 0) scale(1); }
  44% { opacity: .78; }
  68% { opacity: .62; }
  100% { opacity: 0; transform: translate3d(-4%, 2%, 0) scale(1.08); }
}
.intro-playing:not(.idea-playing):not(.routes-playing) .idea { opacity: 0; }
.idea-playing .idea { animation: idea-enter .48s ease-out both; }
@keyframes idea-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.selected-work .case-note {
  display: block;
  max-width: 52ch;
  margin-top: 5px;
  color: #525252;
  line-height: 1.5;
}

.wires-desktop { --route-gradient: url(#desktop-route-gradient); }
.wires-mobile { --route-gradient: url(#mobile-route-gradient); }
.wires .route-highlight:is(.is-highlighted, .is-tracing) {
  opacity: 1;
  stroke: var(--route-gradient);
}
.wires path[data-highlight]:is(.is-highlighted, .is-tracing) {
  stroke: var(--route-gradient);
  stroke-width: 2.5;
  stroke-dasharray: none;
}
.wires circle.is-traveling {
  fill: #b1aaac;
  stroke: #1a1a1d;
  stroke-width: 1;
  r: 3.1;
}
.node:is(.is-highlighted, .is-tracing) {
  border: 1px solid transparent;
  background: linear-gradient(115deg, #ebebec, #ebe9e9) padding-box,
              linear-gradient(115deg, #625f64, #767779 32%, #696062 70%, #3b3b3d) border-box;
}

@media (prefers-reduced-motion: reduce) {
  .mockup-motion .selected-work figure:not(.mockup-visible) { opacity: 1; }
  .mockup-motion .mockup-visible .mockup-frame,
  .mockup-motion .mockup-visible figcaption { animation: none; }
  .mockup-motion .mockup-visible .mockup-frame::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-playing .brand > span { animation: intro-soft-fade .55s ease both; }
  .intro-playing .brand::after { animation: intro-soft-fade .4s .35s ease both; }
  .intro-playing .axis-top { animation: intro-soft-fade .45s .58s ease both; }
  .intro-playing .intro h1 { animation: intro-soft-fade .45s .82s ease both; }
  .intro-playing .platforms li { animation: intro-soft-fade .5s 1.05s ease both; }
  .intro-playing .axis-bottom { animation: intro-soft-fade .5s 1.37s ease both; }
  .idea-playing .idea::before { animation-duration: .55s; }
  .mockup-motion .selected-work figure:not(.mockup-visible) { opacity: 0; }
  .mockup-motion .mockup-visible .mockup-frame,
  .mockup-motion .mockup-visible figcaption { animation: intro-soft-fade .65s ease both; }
}
@keyframes intro-soft-fade { from { opacity: 0; } to { opacity: 1; } }
