:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: 'Urbanist', var(--font-sans);
  --font-mono: 'Google Sans Code', ui-monospace, 'SFMono-Regular', Menlo,
    Consolas, 'Courier New', monospace;

  --c-bg: #ffffff;
  --c-bg-2: #f5f5f3;
  --c-bg-3: #ebebe8;
  --c-ink: #131313;
  --c-ink-2: #444444;
  --c-ink-3: #767676;
  --c-ink-4: #a6a6a6;
  --c-ink-mute: #8a8a8a;
  --c-line: #e4e4e1;
  --c-line-2: #f0f0ee;
  --c-accent: #131313;
  --c-rec: #e5342b;

  --sidebar-w: 304px;
  --sidebar-w-max: 304px;

  --sb-inset: 20px;
  --sb-glyph-inset: 11px;

  --sidebar-w-min: 64px;
  --sidebar-collapse-at: 120px;

  --sidebar-tight-at: 192px;
  --col-gap: 20px;

  --shell-gap: 0px;
  --page-x: 20px;
  --pad-top: 20px;
  --pad-bottom: 20px;

  --space-project: clamp(96px, 14vh, 176px);
  --space-project-end: clamp(80px, 11vh, 144px);
  --space-sub: clamp(52px, 8vh, 96px);

  --fs-display: clamp(2.4rem, 5.2vw, 4.4rem);
  --fs-name: clamp(1.35rem, 1.7vw, 1.6rem);
  --fs-lead: clamp(1.25rem, 1.4vw, 1.5rem);
  --fs-h3: clamp(1.2rem, 1.5vw, 1.45rem);
  --fs-body: 1.25rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.875rem;
  --fs-label: 0.875rem;

  --radius: 2px;
  --radius-lg: 16px;
  --content-pad: clamp(28px, 3.2vw, 44px);

  --content-max: 1400px;
  --tap: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ease-smooth: cubic-bezier(0.4, 0.08, 0.2, 1);
  /* Reveals get their own curve. --ease is easeOutQuint: it covers most of
     its distance in the first quarter of the duration, which is right for a
     control that should feel instant, and wrong for a section arriving —
     there the move is over before the eye catches it. easeOutCubic keeps the
     soft landing but spends the time actually travelling. */
  --ease-reveal: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 0.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--pad-top);
}
html.smooth {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  --c-surface: var(--c-bg-2);
  background: var(--c-bg-2);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--c-ink);
  color: var(--c-bg);
  text-shadow: none;
}

.skip::selection,
.contact__action--primary::selection {
  background: var(--c-bg);
  color: var(--c-ink);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.badge-rec {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 3px 7px;
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-rec__mark {
  flex: none;
  opacity: 0.85;
}

.badge-rec--sb {
  padding: 3px 7px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.badge-rec--shot {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  margin-left: 0;
  padding: 3px 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-bg);
  color: var(--c-ink);
  font-size: 0.6875rem;
  line-height: inherit;
  letter-spacing: 0.1em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 8px 2px rgba(255, 255, 255, 0.4),
    0 0 16px 5px rgba(255, 255, 255, 0.22);
}

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 12px;
}

.page {
  padding-inline: var(--page-x);
}
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: var(--shell-gap);
  align-items: start;
  padding-top: var(--pad-top);
  padding-bottom: var(--space-project);
}

.sidebar {
  position: sticky;
  top: var(--pad-top);
  height: calc(100vh - var(--pad-top) - var(--pad-bottom));
  height: calc(100dvh - var(--pad-top) - var(--pad-bottom));
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 26px);
  min-width: 0;
  min-height: 0;
  padding-right: var(--sb-inset);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 6px;
}

.profile-card {
  position: relative;
}
.profile-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile__photo {
  flex: none;
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: 4px;
}
.profile__name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile__role {
  margin-top: 3px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--c-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile__bio {
  margin-top: 10px;
  max-width: 32ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-ink-2);
  text-wrap: pretty;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  color: var(--c-ink);
  text-align: left;
  transition: color 0.2s var(--ease);
}
.link__icon {
  color: var(--c-ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease);
}
.link:hover .link__icon,
.link:focus-visible .link__icon {
  color: var(--c-ink);
}

.link--copy {
  position: relative;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.link--copy .link__label {
  overflow-wrap: anywhere;
}
.link__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 5px 9px;
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.link--copy:focus-visible .link__tooltip {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .link--copy:hover .link__tooltip {
    opacity: 1;
    transform: translateY(0);
  }
}

.link--copy.is-tip-follow .link__tooltip {
  left: 0;
  bottom: auto;
  top: 0;
  transform: translate3d(
    calc(var(--tip-x, 0px) - 50%),
    calc(var(--tip-y, 0px) - 100% - 14px),
    0
  );
  transition: opacity 0.18s var(--ease);
}
.link--copy.is-tip-follow:hover .link__tooltip,
.link--copy.is-tip-follow:focus-visible .link__tooltip {
  transform: translate3d(
    calc(var(--tip-x, 0px) - 50%),
    calc(var(--tip-y, 0px) - 100% - 14px),
    0
  );
}

.link__icon--copy {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
}
.link__icon--copy::before,
.link__icon--copy::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 9px;
  border: 1.4px solid currentColor;
  border-radius: 1.5px;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}
.link__icon--copy::before {
  right: 0;
  top: 0;
}
.link__icon--copy::after {
  left: 0;
  bottom: 0;
  background: var(--c-bg);
}

.is-copied .link__icon--copy::before {
  width: 5px;
  height: 9px;
  border-width: 0 1.6px 1.6px 0;
  border-radius: 0;
  transform: rotate(45deg);
  top: 0;
  right: 4px;
}

.is-copied .link__icon--copy::after {
  opacity: 0;
  transform: scale(0.8);
}
.is-copied .link__icon,
.is-copied .link__label {
  color: var(--c-ink);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  flex: none;
}
.sidebar-footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--sb-glyph-inset);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  color: var(--c-ink);
  transition: color 0.2s var(--ease), transform 0.16s var(--ease);
}

.sidebar-footer__link:active {
  transform: scale(0.985);
}
.sidebar-footer__link + .sidebar-footer__link {
  border-top: 1px solid var(--c-line);
}
.sidebar-footer__icon {
  position: relative;
  flex: none;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-3);
  transition: color 0.2s var(--ease);
}
.sidebar-footer__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.sidebar-footer__link:hover .sidebar-footer__label,
.sidebar-footer__link:focus-visible .sidebar-footer__label {
  text-decoration-color: currentColor;
}
.sidebar-footer__arrow {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-3);
  transition: color 0.2s var(--ease);
}
.sidebar-footer__link:hover .sidebar-footer__icon,
.sidebar-footer__link:hover .sidebar-footer__arrow,
.sidebar-footer__link:focus-visible .sidebar-footer__icon,
.sidebar-footer__link:focus-visible .sidebar-footer__arrow {
  color: var(--c-ink);
}

.index {
  flex: 1 1 auto;
  min-height: 90px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: calc(var(--page-x) * -0.4);
  padding-right: calc(var(--page-x) * 0.4);
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 20px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 20px),
    transparent 100%
  );
}
.index::-webkit-scrollbar {
  width: 6px;
}
.index::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 6px;
}
.index__title {
  padding: 2px 0 8px var(--sb-glyph-inset);
  position: sticky;
  top: 0;
  background: var(--c-surface);
}
.index__title-short {
  display: none;
}
.index__list > li {
  border-top: 1px solid var(--c-line);
}
.index__list > li:last-child {
  border-bottom: 1px solid var(--c-line);
}
.idx-project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0;
  width: 100%;
  min-height: 42px;
  padding: 0;
  text-align: left;
}
.idx-project__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
  min-height: 42px;
  padding: 0 var(--sb-glyph-inset);
  margin: 0;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease);
}
.idx-project__label:hover,
.idx-project__label:focus-visible {
  background-color: var(--c-bg-3);
}

.idx-project__num {
  flex: none;
  display: inline-block;
  width: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--c-ink-3);
  transition: color 0.2s var(--ease);
}
.idx-project__arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-inline: 4px;
  color: var(--c-ink-3);
  transition: color 0.2s var(--ease);
}
.idx-project__label:hover .idx-project__arrow,
.idx-project__label:focus-visible .idx-project__arrow {
  color: var(--c-ink);
}
.idx-project__name {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--c-ink-2);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.idx-project__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: var(--tap);
  min-height: var(--tap);
  margin: -11px 0 -11px 10px;
  color: var(--c-ink-3);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.16s var(--ease);
}
.idx-project__toggle:active {
  transform: scale(0.94);
}
.idx-project__toggle:hover,
.idx-project__toggle:focus-visible {
  background-color: var(--c-bg-3);
  color: var(--c-ink);
}
.idx-project__toggle:hover .idx-project__chev,
.idx-project__toggle:focus-visible .idx-project__chev {
  color: var(--c-ink);
}
.idx-project__chev {
  width: 12px;
  height: 12px;
  position: relative;
  flex: none;
  color: var(--c-ink-3);
}
.idx-project__chev::before,
.idx-project__chev::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.idx-project__chev::before {
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}
.idx-project__chev::after {
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}
.idx-item.is-open .idx-project__chev::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.idx-item.is-open .idx-project__num,
.idx-item.is-open .idx-project__name,
.idx-project__label:hover .idx-project__name,
.idx-project__label:hover .idx-project__num {
  color: var(--c-ink);
}
.idx-item.is-active .idx-project__name {
  color: var(--c-ink);
  font-weight: 600;
}

.idx-item.is-active .idx-project__num {
  color: var(--c-ink);
  font-weight: 700;
}

.idx-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease);
}
.idx-item.is-open .idx-sub {
  grid-template-rows: 1fr;
}
.idx-sub__inner {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;
  transition: visibility 0.26s var(--ease);
}
.idx-item.is-open .idx-sub__inner {
  visibility: visible;
}
.idx-sub a {
  display: block;
  padding: 7px 0 7px calc(var(--sb-glyph-inset) + 24px);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  position: relative;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}
.idx-sub li:last-child {
  padding-bottom: 7px;
}
.idx-sub a::before {
  content: '';
  position: absolute;
  left: var(--sb-glyph-inset);
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--c-line);
  transform: translateX(0) translateY(-50%) scaleX(0.5);
  transform-origin: left;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}

.idx-sub a:focus-visible {
  color: var(--c-ink);
  transform: translateX(4px);
}
.idx-sub a.is-active {
  color: var(--c-ink);
}
.idx-sub a.is-active::before {
  background: var(--c-ink);
  transform: translateX(0) translateY(-50%) scaleX(1);
}
.idx-sub a:focus-visible::before {
  background: var(--c-ink);
  transform: translateX(-4px) translateY(-50%) scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .idx-sub a:hover {
    color: var(--c-ink);
    transform: translateX(4px);
  }
  .idx-sub a:hover::before {
    background: var(--c-ink);
    transform: translateX(-4px) translateY(-50%) scaleX(1);
  }
}

.sidebar-rail {
  display: none;
}

@media (min-width: 861px) {
  .layout {
    position: relative;
  }
  .layout {
    transition: grid-template-columns 0.42s var(--ease);
  }
  html.sb-dragging .layout,
  html.sb-keying .layout {
    transition: none;
  }
  html.sb-anim .zoom__btn,
  html.sb-anim .video__face {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sidebar-rail {
    display: block;
    position: absolute;
    top: var(--pad-top);
    bottom: var(--pad-bottom);
    left: var(--sidebar-w);
    width: 0;
    z-index: 40;
    transition: left 0.42s var(--ease);
  }
  html.sb-dragging .sidebar-rail,
  html.sb-keying .sidebar-rail {
    transition: none;
  }
  .sidebar-rail__grip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -6px;
    width: 12px;
    cursor: col-resize;
    touch-action: none;
  }
  .sidebar-rail__grip::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: var(--c-line);
    transition: background-color 0.2s var(--ease);
  }
  .sidebar-rail:hover .sidebar-rail__grip::before,
  .sidebar-rail__grip:focus-visible::before {
    background: var(--c-ink-4);
  }
  html.sb-dragging .sidebar-rail__grip::before {
    background: var(--c-ink-3);
  }
  .sidebar-rail__grip:focus-visible {
    outline: 2px solid var(--c-ink);
    outline-offset: 0;
  }
  .sidebar-rail__toggle {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    width: 16px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    background: var(--c-bg-2);
    color: var(--c-ink-3);
    transform: translate(-50%, -50%);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
      background-color 0.2s var(--ease);
  }
  .sidebar-rail__toggle:hover,
  .sidebar-rail__toggle:focus-visible {
    border-color: var(--c-ink-4);
    color: var(--c-ink);
    background: var(--c-bg);
  }
  .sidebar-rail__toggle:active {
    background: var(--c-bg-3);
  }
  .sidebar-rail__chev {
    width: 10px;
    height: 10px;
    transition: transform 0.42s var(--ease);
  }
  html.sb-collapsed .sidebar-rail__chev {
    transform: rotate(180deg);
  }
  html.sb-dragging,
  html.sb-dragging body {
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
  }
}

@media (min-width: 861px) {
  html.sb-collapsed .sidebar {
    overflow: visible;
    z-index: 30;
  }
  html.sb-collapsed .index {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    margin-right: 0;
    padding-right: 0;
  }
  .idx-project__name,
  .profile__text,
  .sidebar-footer__label {
    transition: opacity 0.2s var(--ease) 0.12s;
  }
  html.sb-collapsed .idx-project__name,
  html.sb-collapsed .profile__text,
  html.sb-collapsed .sidebar-footer__label {
    opacity: 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.14s var(--ease);
  }
  html.sb-collapsed .index__title-long {
    display: none;
  }
  html.sb-collapsed .index__title-short {
    display: inline;
  }
  html.sb-collapsed .link__tooltip {
    display: none;
  }
  html.sb-tight .sidebar-footer__arrow,
  html.sb-collapsed .sidebar-footer__arrow {
    display: none;
  }
  html.sb-collapsed .idx-project__toggle {
    visibility: hidden;
    width: 0;
    min-width: 0;
    margin-right: 0;
  }
  html.sb-tight .badge-rec--sb .badge-rec__text {
    display: none;
  }
  html.sb-tight .badge-rec--sb {
    padding: 3px;
  }
  html.sb-collapsed .badge-rec--sb {
    display: none;
  }
  html.sb-collapsed .idx-item .idx-sub {
    grid-template-rows: 0fr;
  }
  html.sb-collapsed .idx-item .idx-sub__inner {
    visibility: hidden;
  }
  .profile__photo {
    width: 44px;
    height: 44px;
  }
  html.sb-collapsed .sidebar-footer__icon > svg {
    transition: opacity 0.16s var(--ease);
  }
  html.sb-collapsed .link--copy.is-copied .sidebar-footer__icon > svg {
    opacity: 0;
  }
  html.sb-collapsed .link--copy.is-copied .sidebar-footer__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid var(--c-ink);
    border-width: 0 1.7px 1.7px 0;
    transform: translate(-50%, -60%) rotate(45deg);
  }
  html.sb-collapsed .sb-tip {
    position: relative;
  }
  html.sb-collapsed .sb-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: 50%;
    left: calc(100% + var(--sb-inset) + 12px);
    z-index: 50;
    padding: 5px 9px;
    background: var(--c-ink);
    color: var(--c-bg);
    font-family: var(--font-sans);
    font-size: var(--fs-micro);
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-radius: var(--radius);
    opacity: 0;
    transform: translate(-4px, -50%);
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  html.sb-collapsed .sb-tip:hover::after,
  html.sb-collapsed .sb-tip:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
  html.sb-dragging .sb-tip::after {
    opacity: 0 !important;
  }
}

@media (min-width: 861px) and (max-height: 620px) {
  html.sb-collapsed .sidebar,
  html.sb-collapsed .index {
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.content {
  min-width: 0;
}

.content > * {
  max-width: var(--content-max);
  margin-inline: auto;
}

@media (min-width: 861px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  .layout {
    padding-bottom: var(--pad-bottom);
  }
  .content {
    height: calc(100vh - var(--pad-top) - var(--pad-bottom));
    height: calc(100dvh - var(--pad-top) - var(--pad-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--c-bg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: var(--content-pad);
    scrollbar-width: thin;
    scrollbar-color: var(--c-line) transparent;
  }
  html.smooth .content {
    scroll-behavior: smooth;
  }
  .content::-webkit-scrollbar {
    width: 8px;
  }
  .content::-webkit-scrollbar-thumb {
    background: var(--c-line);
    border-radius: 8px;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100svh - 64px - 24px - 18px);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.hero__title {
  --hero-w: calc(100vw - 2 * var(--page-x));
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, calc(var(--hero-w) * 0.07), 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ink-mute);
}
.hero__line {
  display: block;
}
.hero__ink {
  color: var(--c-ink);
}

.hero__nb {
  white-space: nowrap;
}

.hero__work {
  margin-top: auto;
  padding-top: clamp(24px, 4vh, 44px);
}
.hero__nav {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 1.6vh, 20px);
}
.js .hero__nav {
  display: flex;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-3);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    opacity 0.2s var(--ease), transform 0.16s var(--ease);
}
.hero__btn:active {
  transform: scale(0.94);
}
.hero__btn:hover,
.hero__btn:focus-visible {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.hero__btn[disabled] {
  opacity: 0.32;
  cursor: default;
}
.hero__btn[disabled]:hover {
  border-color: var(--c-line);
  color: var(--c-ink-3);
}
.hero__arrow {
  width: 10px;
}

.hero__strip {
  --shot-h: clamp(185px, 40vh, 460px);
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.2vw, 18px);
  margin-inline: calc(-1 * var(--content-pad));
  padding-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--content-pad);
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero__strip::-webkit-scrollbar {
  display: none;
}
.hero__strip:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.js .hero__strip {
  cursor: grab;
}
.js .hero__strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.hero__shot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: none;
  width: calc(var(--shot-h) * var(--ar, 4 / 3));
  scroll-snap-align: start;
  transition: transform 0.28s var(--ease);
}
.hero__well {
  display: block;
  width: 100%;
  height: var(--shot-h);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.hero__shot:first-child {
  margin-inline-start: var(--content-pad);
}
.hero__shot:last-child {
  margin-inline-end: var(--content-pad);
}
.hero__well img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.hero__shot:hover,
.hero__shot:focus-visible {
  transform: translateY(-10px);
}
.hero__shot:hover .hero__well,
.hero__shot:focus-visible .hero__well {
  border-color: var(--c-ink-3);
}
.hero__shot:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}

.hero__strip.is-dragging .hero__shot {
  transform: none;
}

.hero__shot-tags {
  --tag-fade: 34px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.hero__taglist {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--tag-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--tag-fade)),
    transparent 100%
  );
}
.hero__tag {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 3px 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--c-ink-3);
}

.hero__tag--project {
  background: var(--c-bg-2);
  color: var(--c-ink);
}
.hero__tag--project .num {
  color: var(--c-ink-3);
}

.hero__note {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 62ch;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-ink-3);
  text-wrap: pretty;
}

.hero__note span {
  display: block;
}

@media (min-width: 861px) {
  .hero__title {
    --hero-w: min(
      var(--content-max),
      calc(
        100vw - 2 * var(--page-x) - var(--sidebar-w) - var(--shell-gap) - 2 *
          var(--content-pad)
      )
    );
  }
}

@media (min-width: 861px) and (min-height: 621px) {
  .hero {
    min-height: calc(
      100dvh - var(--pad-top) - var(--pad-bottom) - 2 * var(--content-pad)
    );
  }
  .hero__strip {
    margin-bottom: calc(var(--content-pad) / -4);
  }
}

@media (min-width: 861px) and (max-height: 620px) {
  .hero {
    min-height: 0;
    padding-block: clamp(24px, 6vh, 48px);
  }
}

@media (max-width: 860px) {
  .hero__strip {
    --shot-peek: 34px;
    --shot-ar-max: 1.774;
    --shot-fit: max(
      140px,
      calc((100vw - var(--page-x) - var(--shot-peek)) / var(--shot-ar-max))
    );
    --shot-h: min(300px, 30vh, var(--shot-fit));
    --shot-h: min(300px, 30svh, var(--shot-fit));
    margin-inline: calc(-1 * var(--page-x));
    scroll-padding-inline: var(--page-x);
    scroll-snap-type: x mandatory;
  }
  .hero__shot:first-child {
    margin-inline-start: var(--page-x);
  }
  .hero__shot:last-child {
    margin-inline-end: var(--page-x);
  }
}

@media (min-width: 861px) and (max-height: 799px) {
  .hero__strip {
    --shot-h: clamp(175px, 36vh, 460px);
  }
}

.project {
  padding-top: var(--space-project);
  padding-bottom: var(--space-project-end);
  scroll-margin-top: var(--pad-top);
}

.project:last-of-type {
  padding-bottom: 0;
}
.project + .project {
  border-top: 1px solid var(--c-line);
}

.content > .project:first-of-type {
  padding-top: clamp(36px, 6vh, 64px);
  border-top: 1px solid var(--c-line);
}

.project__head {
  scroll-margin-top: var(--pad-top);
}
.project__title {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.project__visit {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.project__visit:hover,
.project__visit:focus-visible {
  color: var(--c-ink-3);
}
.project__visit-icon {
  flex: none;
  display: inline-flex;
}
.project__visits {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.project__visits .project__visit {
  margin-top: 0;
}
.project__meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 500px;
  gap: 8px 24px;
}
.project__meta dt {
  color: var(--c-ink-3);
}
.project__meta dd {
  color: var(--c-ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-sans);
}

.project__meta .meta-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project__meta .meta-pair dt {
  margin-bottom: 2px;
}
.project__lead {
  margin-top: 26px;
  max-width: 62ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-ink);
  text-wrap: pretty;
}
.project__meta + .project__lead {
  margin-top: 44px;
}
.project__lead + .project__visit,
.project__lead + .project__visits {
  margin-top: 24px;
}

.lead-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s var(--ease);
}
.lead-link:hover,
.lead-link:focus-visible {
  opacity: 0.62;
}
.project__cover {
  margin-top: clamp(32px, 5vh, 56px);
}

.project__cta {
  margin-top: clamp(36px, 5vh, 60px);
}
.cta-case {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: clamp(84px, 9.5vw, 132px);
  padding: 20px clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  color: var(--c-ink);
  font-size: var(--fs-body);
  line-height: 1.25;
  overflow: hidden;
  transition: color 0.45s var(--ease);
}

.cta-case::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.cta-case:hover,
.cta-case:focus-visible {
  color: var(--c-bg);
}
.cta-case:hover::before,
.cta-case:focus-visible::before {
  transform: scaleX(1);
}

.cta-case:hover ::selection {
  background: var(--c-bg);
  color: var(--c-ink);
}
.cta-case__arrow {
  flex: none;
  display: inline-flex;
  transition: transform 0.45s var(--ease);
}
.cta-case:hover .cta-case__arrow,
.cta-case:focus-visible .cta-case__arrow {
  transform: translateX(8px);
}

@media (min-width: 861px) {
  .cta-case {
    width: 50%;
    min-width: 400px;
    max-width: 800px;
  }
}

.case {
  padding-top: clamp(24px, 3.5vh, 40px);
}
.case__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--c-ink-3);
  transition: color 0.2s var(--ease);
}
.case__back:hover,
.case__back:focus-visible {
  color: var(--c-ink);
}
.case__back-icon {
  flex: none;
  display: inline-flex;
  transition: transform 0.2s var(--ease);
}
.case__back:hover .case__back-icon,
.case__back:focus-visible .case__back-icon {
  transform: translateX(-4px);
}

.case__back--next .case__back-icon {
  order: 2;
}
.case__back--next:hover .case__back-icon,
.case__back--next:focus-visible .case__back-icon {
  transform: translateX(4px);
}
.case__eyebrow {
  margin-top: clamp(28px, 4vh, 44px);
  margin-bottom: 12px;
  display: block;
}

.case__body {
  padding-top: clamp(8px, 2vh, 24px);
}
.case__foot {
  margin-top: var(--space-project);
  padding-top: clamp(30px, 4.5vh, 52px);
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}

.sub {
  padding-top: var(--space-sub);
  scroll-margin-top: var(--pad-top);
}
.sub__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.sub__label::after {
  content: "";
  flex: 1 1 auto;
  align-self: center;
  height: 1px;
  background: var(--c-line);
}
.sub__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--c-ink-3);
}
.sub__label h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  line-height: 1.4;
}
.sub__body {
  min-width: 0;
}
.sub__body > * + * {
  margin-top: 1.1em;
}
.sub__body p {
  max-width: 78ch;
  color: var(--c-ink-2);
  text-wrap: pretty;
}
.sub__body p strong {
  color: var(--c-ink);
  font-weight: 600;
}
.sub__body h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.steps {
  margin-top: 1.3em !important;
  max-width: 62ch;
  list-style: disc;
  padding-left: 1.1em;
  color: var(--c-ink-2);
}
.steps li {
  padding: 2px 0;
  text-wrap: pretty;
}
.steps li::marker {
  color: var(--c-ink-3);
}

.hmw {
  margin-top: 1.4em !important;
  max-width: 62ch;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-ink);
  text-wrap: pretty;
}

.findings {
  margin-top: 1.3em !important;
  max-width: 62ch;
  list-style: decimal;
  padding-left: 1.5em;
  color: var(--c-ink-2);
}
.findings li {
  padding: 2px 0;
  text-wrap: pretty;
}
.findings li::marker {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--c-ink-3);
}

.ph {
  aspect-ratio: var(--ratio, 16 / 10);
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--c-ink-4);
}

.stats {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat {
  background: var(--c-bg);
  padding: 20px 18px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  color: var(--c-ink-3);
}

.figure {
  margin-top: 1.6em;
}
.figure img,
.ph {
  width: 100%;
  display: block;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}

.video {
  position: relative;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}
.video__el {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: var(--ratio, 16 / 9);
  object-fit: cover;
}

.video img {
  border: 0;
  background: none;
}

.video__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  pointer-events: none;
}
.video__bar {
  display: block;
  height: 100%;
  background: var(--c-rec);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.video.is-dead .video__track {
  display: none;
}

.video__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.video__btn:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}
.video__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .video__face {
    background: rgba(18, 18, 18, 0.38);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
  }
}

.video.is-hot .video__face,
.video.is-paused .video__face,
.video__btn:focus-visible .video__face {
  opacity: 1;
  transform: none;
}
.video__btn:active .video__face {
  transform: scale(0.94);
}
.video__icon {
  display: inline-flex;
}
.video__icon svg {
  display: block;
  margin-left: var(--icon-nudge, 0);
}

@media (max-width: 640px) {
  .video__face {
    width: 54px;
    height: 54px;
  }
  .video__icon svg {
    width: 18px;
    height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video__face {
    transition: none;
  }
}

.embed {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.embed--board {
  --ratio: 16 / 10;
}
@media (max-width: 700px) {
  .embed--board {
    --ratio: 3 / 4;
  }
}

.figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  color: var(--c-ink-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.figcaption__tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-4);
}

.sub__body .embed-link {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  color: var(--c-ink-3);
}
.embed-link + .figure {
  margin-top: 10px;
}

.zoom {
  --zoom-scale: 0.978;
  --zoom-edge: calc((1 - var(--zoom-scale)) / 2 * 100%);
  --zoom-gap: 6px;
  position: relative;
  display: block;
  line-height: 0;
}

.zoom > img {
  transform-origin: center center;
  transition: transform 0.42s var(--ease-smooth);
}
.zoom:hover > img {
  transform: scale(var(--zoom-scale));
}

.zoom__marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zoom::before,
.zoom::after,
.zoom__marks::before,
.zoom__marks::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--c-ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.42s var(--ease-smooth),
    transform 0.42s var(--ease-smooth);
}
.zoom::before {
  top: calc(var(--zoom-edge) - var(--zoom-gap));
  left: calc(var(--zoom-edge) - var(--zoom-gap));
  border-right: 0;
  border-bottom: 0;
  transform: translate(7px, 7px);
}
.zoom::after {
  top: calc(var(--zoom-edge) - var(--zoom-gap));
  right: calc(var(--zoom-edge) - var(--zoom-gap));
  border-left: 0;
  border-bottom: 0;
  transform: translate(-7px, 7px);
}
.zoom__marks::before {
  bottom: calc(var(--zoom-edge) - var(--zoom-gap));
  left: calc(var(--zoom-edge) - var(--zoom-gap));
  border-right: 0;
  border-top: 0;
  transform: translate(7px, -7px);
}
.zoom__marks::after {
  bottom: calc(var(--zoom-edge) - var(--zoom-gap));
  right: calc(var(--zoom-edge) - var(--zoom-gap));
  border-left: 0;
  border-top: 0;
  transform: translate(-7px, -7px);
}
.zoom:hover::before,
.zoom:hover::after,
.zoom:hover .zoom__marks::before,
.zoom:hover .zoom__marks::after {
  opacity: 1;
  transform: translate(0, 0);
}
.zoom__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--c-ink);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.34s var(--ease-smooth),
    transform 0.42s var(--ease-smooth),
    background-color 0.26s var(--ease-smooth),
    border-color 0.26s var(--ease-smooth);
  box-shadow:
    0 0 0 1px rgba(19, 19, 19, 0.05),
    0 6px 20px rgba(19, 19, 19, 0.16);
}

@supports not (backdrop-filter: blur(1px)) {
  .zoom__btn {
    background: rgba(255, 255, 255, 0.9);
  }
  .zoom:hover .zoom__btn:hover,
  .zoom__btn:focus-visible:hover {
    background: rgba(255, 255, 255, 0.99);
  }
}
.zoom__btn svg {
  display: block;
}
.zoom:hover .zoom__btn,
.zoom__btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.zoom:hover .zoom__btn:hover,
.zoom__btn:focus-visible:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.78);
}
.zoom:hover .zoom__btn:active {
  background: rgba(255, 255, 255, 0.82);
  transition-duration: 0.09s;
}

@media (hover: none) {
  .zoom__btn {
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    transform: none;
    pointer-events: none;
  }
  .zoom > img {
    cursor: zoom-in;
  }
  .zoom:hover > img {
    transform: none;
  }
  .zoom::before,
  .zoom::after,
  .zoom__marks::before,
  .zoom__marks::after {
    display: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.14s linear;
  overscroll-behavior: contain;
}
.lightbox,
.lightbox * {
  touch-action: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox:not(.is-open) {
  pointer-events: none;
}
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 243, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
  cursor: pointer;
}
.lightbox__img {
  position: relative;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
}
.lightbox__close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--c-ink);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(19, 19, 19, 0.05),
    0 6px 20px rgba(19, 19, 19, 0.16);
  transition:
    background-color 0.26s var(--ease-smooth),
    border-color 0.26s var(--ease-smooth);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.78);
}
.lightbox__close:active {
  background: rgba(255, 255, 255, 0.82);
  transition-duration: 0.09s;
}
@supports not (backdrop-filter: blur(1px)) {
  .lightbox__close {
    background: rgba(255, 255, 255, 0.9);
  }
  .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.99);
  }
}
.lightbox__close svg {
  display: block;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(19, 19, 19, 0.05),
    0 6px 20px rgba(19, 19, 19, 0.16);
  color: var(--c-ink);
  cursor: pointer;
  transition:
    background-color 0.26s var(--ease-smooth),
    border-color 0.26s var(--ease-smooth);
}
.lightbox__nav--prev {
  left: clamp(14px, 3vw, 28px);
}
.lightbox__nav--next {
  right: clamp(14px, 3vw, 28px);
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.78);
}
.lightbox__nav:active {
  background: rgba(255, 255, 255, 0.82);
  transition-duration: 0.09s;
}
.lightbox__nav svg {
  display: block;
}

.lightbox__bar {
  position: absolute;
  bottom: clamp(14px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  max-width: min(86vw, 62ch);
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(19, 19, 19, 0.05),
    0 6px 20px rgba(19, 19, 19, 0.16);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.4;
  color: var(--c-ink);
}
.lightbox__caption {
  min-width: 0;
  text-wrap: pretty;
}
.lightbox__caption:empty {
  display: none;
}
.lightbox__count {
  flex: none;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

@supports not (backdrop-filter: blur(1px)) {
  .lightbox__nav,
  .lightbox__bar {
    background: rgba(255, 255, 255, 0.9);
  }
  .lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
  .zoom > img,
  .zoom:hover > img {
    transform: none;
    transition: none;
  }
  .zoom__btn {
    transition: opacity 0.14s linear;
  }
  .zoom::before,
  .zoom::after,
  .zoom__marks::before,
  .zoom__marks::after {
    transition: opacity 0.14s linear;
    transform: none;
  }
}

.media-grid {
  margin-top: 1.6em;
  display: grid;
  gap: 20px;
}
.media-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.media-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.media-grid--even {
  --even-ratio: 842 / 1190;
}
.media-grid--even .figure img {
  width: 100%;
  aspect-ratio: var(--even-ratio);
  object-fit: cover;
}

.media-grid--even .video__el {
  aspect-ratio: var(--even-ratio);
}

.media-grid--even .ph {
  aspect-ratio: var(--even-ratio);
}

.media-grid--pair {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.media-grid--pair .figure {
  flex: var(--w, 1) 1 0;
  min-width: 0;
}
.media-grid--pair .figure img {
  height: auto;
}
@media (max-width: 860px) {
  .media-grid--pair {
    flex-direction: column;
  }
  .media-grid--pair .figure {
    flex: none;
    width: 100%;
  }
}

.figure--half,
.media-grid--half {
  max-width: calc(50% - 10px);
}
@media (max-width: 720px) {
  .figure--half,
  .media-grid--half {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .media-grid--2.media-grid--tall {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .media-grid--even.media-grid--tall .figure img {
    aspect-ratio: var(--even-ratio);
  }
  .media-grid--pair.media-grid--tall {
    flex-direction: row;
    gap: 12px;
  }
  .media-grid--pair.media-grid--tall .figure {
    flex: var(--w, 1) 1 0;
    width: auto;
  }
}

.media-grid--offset {
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
}

.media-grid--stack {
  grid-template-columns: 1.6fr 1fr;
  align-items: stretch;
}
.media-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 0;
}
.media-grid--stack .figure {
  min-height: 0;
}
.media-grid--stack .figure img {
  height: 100%;
  object-fit: cover;
}

.media-stack .figure img {
  aspect-ratio: 23 / 10;
}

.media-stack .video {
  height: 100%;
  aspect-ratio: 23 / 10;
}
.media-stack .video__el {
  height: 100%;
}
.media-grid .figure {
  margin-top: 0;
}

.project__cover + .media-grid {
  margin-top: 20px;
}
.media-full {
  margin-top: 1.6em;
}

@media (max-width: 1200px) {
  .media-grid--stack {
    grid-template-columns: 1fr;
  }
  .media-stack {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }
  .media-grid--stack .figure img {
    height: auto;
  }
  .media-stack .video {
    height: auto;
  }
}
@media (max-width: 640px) {
  .media-stack {
    grid-template-columns: 1fr;
  }
}

.about {
  margin-top: var(--space-project);
  padding-top: var(--space-project);
  border-top: 1px solid var(--c-line);
}

.about__title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.life {
  margin-top: clamp(38px, 5.5vh, 68px);
}
.life__act + .life__act {
  margin-top: var(--space-sub);
}

.life__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: clamp(18px, 2vh, 28px);
}

.life__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.life__hint {
  display: none;
  align-items: center;
  gap: 7px;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.js .life__hint {
  display: inline-flex;
}
.life__act.is-used .life__hint {
  opacity: 0;
  visibility: hidden;
}
.life__hint-arrow {
  flex: none;
  width: 11px;
}

.life__row {
  --life-w: clamp(208px, 27vw, 400px);
  --life-gap: clamp(12px, 1.4vw, 22px);
  overflow-anchor: none;
  margin-inline: calc(-1 * var(--content-pad));
  padding-block: 8px;
  margin-block: -8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.life__row::-webkit-scrollbar {
  display: none;
}
.life__row:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.js .life__row {
  cursor: grab;
}
.js .life__row.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.life__track {
  overflow-anchor: none;
  display: flex;
  align-items: flex-start;
  gap: var(--life-gap);
  width: max-content;
  padding-inline: var(--content-pad);
}

.life__row.is-loop {
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
}
.life__row.is-loop .life__track {
  padding-inline: 0;
}

.life__item {
  flex: none;
  width: var(--life-w);
}
.life__figure {
  margin: 0;
}
.js .life__img {
  cursor: grab;
}
.js .life__row.is-dragging .life__img,
.js .life__row.is-dragging .zoom__btn {
  cursor: grabbing;
}
.js .life__row.is-dragging .zoom > img,
.js .life__row.is-moving .zoom > img {
  transform: none;
}
.js .life__row.is-dragging .zoom__btn,
.js .life__row.is-dragging .zoom::before,
.js .life__row.is-dragging .zoom::after,
.js .life__row.is-dragging .zoom__marks::before,
.js .life__row.is-dragging .zoom__marks::after,
.js .life__row.is-moving .zoom__btn,
.js .life__row.is-moving .zoom::before,
.js .life__row.is-moving .zoom::after,
.js .life__row.is-moving .zoom__marks::before,
.js .life__row.is-moving .zoom__marks::after {
  opacity: 0;
}
.life__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 1);
  object-fit: cover;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  -webkit-user-drag: none;
  user-select: none;
}

.life__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--c-ink-3);
  text-wrap: pretty;
}
.life__caption:empty {
  display: none;
}

.contact {
  margin-top: var(--space-project);
  padding-top: var(--space-project);
  border-top: 1px solid var(--c-line);
}
.contact__title {
  margin-top: 14px;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contact__body {
  margin-top: 18px;
  max-width: 50ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-ink-2);
  text-wrap: pretty;
}
.contact__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.16s var(--ease);
}
.contact__action:active {
  transform: scale(0.97);
}
.contact__action:hover,
.contact__action:focus-visible {
  border-color: var(--c-ink);
  background: var(--c-bg-2);
}
.contact__action--primary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}
.contact__action--primary:hover,
.contact__action--primary:focus-visible {
  background: var(--c-ink-2);
  border-color: var(--c-ink-2);
  color: var(--c-bg);
}

.testimonials {
  margin-top: var(--space-project);
  padding-top: var(--space-project);
  border-top: 1px solid var(--c-line);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px var(--col-gap);
  align-items: start;
}
.testimonials__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.testimonials__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.testimonials__nav {
  display: none;
  align-items: center;
  gap: 10px;
}
.js .testimonials__nav {
  display: flex;
}
.testimonials__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-3);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.16s var(--ease);
}
.testimonials__btn:active {
  transform: scale(0.94);
}
.testimonials__btn:hover,
.testimonials__btn:focus-visible {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.testimonials__arrow {
  width: 10px;
}
.testimonials__count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink-3);
}

.testimonials__list {
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}
.js .testimonials__list {
  touch-action: pan-y;
}
.js .testimonials__item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0s linear 0.18s;
  pointer-events: none;
}
.js .testimonials__item.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.26s var(--ease) 0.12s,
    transform 0.26s var(--ease) 0.12s, visibility 0s linear;
  pointer-events: auto;
}

.js .testimonials__list.is-dragging .testimonials__item.is-active {
  transition: none;
}
.js .testimonials__list.is-settling .testimonials__item.is-active {
  transition: transform 0.3s var(--ease);
}
.testimonials__quote {
  max-width: 46ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-wrap: pretty;
}
.testimonials__author {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.testimonials__avatar {
  flex: none;
  width: 66px;
  height: 66px;
  object-fit: cover;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: 4px;
}
.testimonials__byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonials__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--c-ink-3);
}
.testimonials__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  width: fit-content;
}
.testimonials__linkedin {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 0.82rem;
  line-height: 16px;
  color: var(--c-ink);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.testimonials__linkedin-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.testimonials__linkedin:hover,
.testimonials__linkedin:focus-visible {
  opacity: 0.62;
}
.testimonials__linkedin-icon {
  flex: none;
}

.colophon {
  container-type: inline-size;
  margin-top: var(--space-project);
  padding: 0 0 24px;
}
.colophon__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}
.colophon__meta {
  font-size: var(--fs-small);
  color: var(--c-ink-3);
}

.colophon__wordmark {
  margin-top: clamp(8px, 2vh, 20px);
  margin-left: -0.018em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 26vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--c-ink);
  white-space: nowrap;
}
@supports (width: 1cqw) {
  .colophon__wordmark {
    font-size: 21.28cqw;
  }
}

.talk {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--topbar-h, 64px) + 8px) var(--page-x) var(--page-x);
}
.talk[hidden] {
  display: none;
}
.talk__scrim {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 19, 0.32);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.talk.is-open .talk__scrim {
  opacity: 1;
}
.talk__sheet {
  position: relative;
  width: min(330px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px -26px rgba(19, 19, 19, 0.42);
  transform-origin: top center;
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.26s var(--ease), transform 0.42s var(--ease);
}
.talk.is-open .talk__sheet {
  transform: none;
  opacity: 1;
}
body.talk-open {
  overflow: hidden;
}
.talk__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: -8px;
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--c-line);
}
.talk__photo {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}
.talk__ident {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.talk__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.talk__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.talk__list {
  display: flex;
  flex-direction: column;
  margin-inline: -8px;
}
.talk__list > li + li {
  border-top: 1px solid var(--c-line-2);
}
.talk__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 8px;
  border-radius: var(--radius);
  text-align: left;
  color: var(--c-ink);
  transition: background-color 0.2s var(--ease);
}
.talk__row:hover,
.talk__row:focus-visible {
  background: var(--c-bg-2);
}
.talk__row:active {
  background: var(--c-bg-3);
}
.talk__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: var(--c-ink-3);
}
.talk__text {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.talk__value {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.16s var(--ease);
}
.talk__value--done {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
}
.talk__row.is-copied .talk__value {
  opacity: 0;
}
.talk__row.is-copied .talk__value--done {
  opacity: 1;
}
.talk__action {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--c-bg-2);
  color: var(--c-ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.talk__row.is-copied .talk__action {
  background: var(--c-ink);
  color: var(--c-bg);
}
.talk__action-icon--done {
  position: absolute;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s var(--ease), transform 0.28s var(--ease);
}
.talk__action-icon--copy {
  transition: opacity 0.18s var(--ease);
}
.talk__row.is-copied .talk__action-icon--copy {
  opacity: 0;
}
.talk__row.is-copied .talk__action-icon--done {
  opacity: 1;
  transform: none;
}

.topbar {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --pad-top: 0px;
    --topbar-safe: env(safe-area-inset-top, 0px);
    --topbar-h: calc(64px + var(--topbar-safe));
  }
  html {
    scroll-padding-top: var(--topbar-h);
  }
  .layout {
    grid-template-columns: 1fr;
    padding-top: calc(var(--topbar-h) + 24px);
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--topbar-h);
    padding-inline: var(--page-x);
    padding-top: var(--topbar-safe);
    background: var(--c-bg);
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--c-line);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  .topbar__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.015em;
  }
  .topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .talk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    background: var(--c-ink);
    border: 1px solid var(--c-ink);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-bg);
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
      transform 0.16s var(--ease);
  }
  .talk-btn:active {
    transform: scale(0.97);
  }
  .talk-btn::selection,
  .talk-btn__label::selection {
    background: var(--c-bg);
    color: var(--c-ink);
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    min-width: var(--tap);
    margin-right: -11px;
    padding: 8px 11px;
    color: var(--c-ink);
    transition: transform 0.16s var(--ease);
  }
  .menu-btn:active {
    transform: scale(0.97);
  }
  .menu-btn__glyph {
    width: 22px;
    height: 12px;
    position: relative;
  }
  .menu-btn__glyph::before,
  .menu-btn__glyph::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.4s var(--ease);
  }
  .menu-btn__glyph::before {
    top: 1px;
  }
  .menu-btn__glyph::after {
    bottom: 1px;
  }
  body.nav-open .menu-btn__glyph::before {
    transform: translateY(4px) rotate(45deg);
  }
  body.nav-open .menu-btn__glyph::after {
    transform: translateY(-4px) rotate(-45deg);
  }
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px var(--page-x) max(32px, env(safe-area-inset-bottom));
    --c-surface: var(--c-bg);
    background: var(--c-bg);
    border: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease), visibility 0.55s var(--ease);
    visibility: hidden;
  }
  body.nav-open .sidebar {
    transform: none;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
  .index {
    order: 3;
    flex: none;
    min-height: 0;
    margin-top: 36px;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .index__title {
    position: static;
    padding: 4px 0 14px;
    background: transparent;
  }
  .index__list > li:first-child {
    border-top: 0;
  }
  .idx-project {
    min-height: 0;
  }
  .idx-project__label {
    min-height: 0;
    padding: 14px 0;
    gap: 16px;
    border-radius: 0;
  }
  .idx-project__label:hover,
  .idx-project__label:focus-visible {
    background-color: transparent;
  }
  .idx-project__label:active .idx-project__name {
    color: var(--c-ink-4);
  }
  .idx-project__num {
    width: 28px;
    font-size: var(--fs-label);
  }
  .idx-project__arrow {
    width: 16px;
    height: 16px;
    margin-inline: 6px;
  }
  .idx-project__name {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--c-ink-2);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .profile-card {
    order: 1;
    flex: none;
    margin-top: 0;
    padding-top: 8px;
  }
  .profile-card__head {
    gap: 14px;
  }
  .profile__photo {
    width: 52px;
    height: 52px;
  }
  .profile__name {
    font-size: 1.15rem;
  }
  .sidebar-footer {
    order: 2;
    margin-top: 20px;
    border-top: 1px solid var(--c-line);
  }
  .sidebar-footer__link {
    padding: 12px 0;
    min-height: var(--tap);
    font-size: 1rem;
    gap: 14px;
  }
  .sidebar-footer__icon {
    width: 28px;
  }
  .index__title,
  .index__list > li,
  .profile-card,
  .sidebar-footer {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  body.nav-open .index__title,
  body.nav-open .index__list > li,
  body.nav-open .profile-card,
  body.nav-open .sidebar-footer {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
    transition-delay: calc(0.12s + var(--i, 0) * 45ms);
  }
  .profile-card { --i: 1; }
  .sidebar-footer { --i: 2; }
  .index__title { --i: 3; }
  .index__list > li:nth-child(1) { --i: 4; }
  .index__list > li:nth-child(2) { --i: 5; }
  .index__list > li:nth-child(3) { --i: 6; }
  .index__list > li:nth-child(4) { --i: 7; }
  .index__list > li:nth-child(5) { --i: 8; }
  .index__list > li:nth-child(6) { --i: 9; }
  .index__list > li:nth-child(7) { --i: 10; }
  .sub__label {
    margin-bottom: 16px;
  }
  .life__row {
    margin-inline: calc(-1 * var(--page-x));
  }
  .life__track {
    padding-inline: var(--page-x);
  }
  .media-grid--2,
  .media-grid--offset {
    grid-template-columns: 1fr;
  }
  .media-grid--even .figure img {
    aspect-ratio: auto;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .layout {
    padding-bottom: 0;
  }
  .colophon {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .colophon__wordmark {
    margin-bottom: -0.1em;
  }
}

@media (max-width: 460px) {
  .project__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .testimonials__role {
    font-size: 0.78rem;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.7s var(--ease-reveal), transform 0.7s var(--ease-reveal);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* A figure inside a section that is itself still arriving would otherwise
   carry both offsets and travel twice as far as anything else. Shorten the
   inner leg so the pair reads as one stagger rather than a double dip. */
/* :not() rather than a bare nested selector — this sits after the
   .is-visible rule and matches just as specifically, so unqualified it
   would win back the offset on elements that have already settled. */
.js .reveal .reveal:not(.is-visible) {
  transform: translateY(24px);
}

/* Left by the top edge, so it rests above rather than below.
   This is not a taste call, it is what keeps the observer stable. The
   observer measures the transformed box, so a hidden offset pointing back
   toward the viewport re-triggers the very element that just left: hide,
   drop 38px, re-enter, reveal, rise, leave, repeat. Offsetting away from
   the edge it exited puts the hidden box further out than the threshold
   that hid it, so both states hold and the boundary stops flickering.
   Must stay after the nested rule above — same specificity, and this one
   has to win for a nested figure that has scrolled off the top. */
.js .reveal.is-above:not(.is-visible) {
  transform: translateY(-24px);
}

/* Grids stagger off their own arrival, not an ancestor's. Every .media-grid
   is a reveal in its own right now, so keying the cascade to the nearest
   .reveal ancestor would have released these the moment the section above
   them appeared — several screens early, and unseen. */
.js .media-grid.reveal > .figure,
.js .media-grid.reveal > .media-stack {
  transform: translateY(16px);
  transition: transform 0.55s var(--ease-reveal);
}
.js .media-grid.reveal.is-visible > .figure,
.js .media-grid.reveal.is-visible > .media-stack {
  transform: none;
}
.js .media-grid.reveal.is-visible > :nth-child(2) {
  transition-delay: 90ms;
}
.js .media-grid.reveal.is-visible > :nth-child(3) {
  transition-delay: 180ms;
}

.nf__pick {
  margin-top: clamp(48px, 7vh, 84px);
}
.nf__pick-title {
  display: block;
  font-size: var(--fs-label);
  font-weight: 400;
}
.nf__list {
  margin-top: 12px;
  max-width: 560px;
  border-top: 1px solid var(--c-line);
}
.nf__row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--tap);
  padding: 14px 2px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
}
.nf__num {
  flex: none;
  font-size: var(--fs-small);
  color: var(--c-ink-4);
  transition: color 0.2s var(--ease);
}
.nf__name {
  flex: 1 1 auto;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.nf__arrow {
  flex: none;
  display: inline-flex;
  color: var(--c-ink-4);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.nf__row:hover .nf__num,
.nf__row:focus-visible .nf__num {
  color: var(--c-ink-3);
}
.nf__row:hover .nf__arrow,
.nf__row:focus-visible .nf__arrow {
  transform: translateX(4px);
  color: var(--c-ink);
}

@media (max-width: 640px) {
  .nf__row {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html.smooth,
  html.smooth .content {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }
  .reveal,
  .js .reveal,
  .js .media-grid.reveal > .figure,
  .js .media-grid.reveal > .media-stack {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .testimonials__item {
    transform: none !important;
  }
  .idx-sub a:hover,
  .idx-sub a:focus-visible {
    transform: none !important;
  }
  .hero__shot:hover,
  .hero__shot:focus-visible {
    transform: none !important;
  }
  .cta-case::before {
    transform: scaleX(1) !important;
    opacity: 0;
    transition: opacity 0.2s !important;
  }
  .cta-case:hover::before,
  .cta-case:focus-visible::before {
    opacity: 1;
  }
  .cta-case:hover .cta-case__arrow,
  .cta-case:focus-visible .cta-case__arrow,
  .case__back:hover .case__back-icon,
  .case__back:focus-visible .case__back-icon,
  .nf__row:hover .nf__arrow,
  .nf__row:focus-visible .nf__arrow {
    transform: none !important;
  }
  .idx-sub a:hover::before,
  .idx-sub a:focus-visible::before {
    transform: translateX(0) translateY(-50%) scaleX(1) !important;
  }
  .layout,
  .sidebar-rail {
    transition: none !important;
  }
  .sidebar {
    transition: visibility 0.2s !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.u-hairline {
  height: 1px;
  background: var(--c-line);
  border: 0;
}
