.v2-welcome,.v2-works{display:none}

@media(min-width:1000px){
  @font-face{
    font-family:'Hanken Grotesk V2';
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('/assets/fonts/HankenGrotesk-V2-SemiBold.ttf') format('truetype');
  }
  @font-face{
    font-family:'Hanken Grotesk V2';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('/assets/fonts/HankenGrotesk-V2-Bold.ttf') format('truetype');
  }
  @font-face{
    font-family:'Hanken Grotesk V2';
    font-style:normal;
    font-weight:800;
    font-display:swap;
    src:url('/assets/fonts/HankenGrotesk-V2-ExtraBold.ttf') format('truetype');
  }
  @font-face{
    font-family:'Hanken Grotesk V2';
    font-style:normal;
    font-weight:900;
    font-display:swap;
    src:url('/assets/fonts/HankenGrotesk-900.ttf') format('truetype');
  }
  body:is([data-page="home"],[data-page="works"]){
    background:#fff;
  }
  body:is([data-page="home"],[data-page="works"]) :is(.home-index-nav,.page-footer){display:none}
  body:is([data-page="home"],[data-page="works"]) .desktop-layout{container-type:inline-size}
  .v2-welcome,.v2-works{
    /* At wider sizes, keep the reference spacing and let the two covers grow. */
    --v2-nav-u:calc(min(100vw,1440px) / 1440);
    --v2-nav-top:calc(13 * var(--v2-nav-u));
    --v2-works-muted:#b4b4b4;
    --v2-u:calc(min(100cqw,1440px) / 1440);
    --v2-margin:calc(22 * var(--v2-u));
    --v2-gutter:calc(26 * var(--v2-u));
    --v2-column:calc(92.5 * var(--v2-u));
    --v2-panel-width:calc(2 * var(--v2-column) + var(--v2-gutter));
    --v2-panel-height:calc(135 * var(--v2-u));
    font-family:'Hanken Grotesk V2',Arial,sans-serif;
    font-synthesis:none;
  }
  .v2-container{width:100%}
  .v2-works{display:block}
  [data-v2-welcome] .v2-welcome{display:block}
  [data-v2-welcome-leaving] .v2-welcome{
    transform:translateY(-100%);
    pointer-events:none;
  }
  [data-v2-welcome-leaving] .v2-welcome-content{transform:translateY(100%)}

  .v2-welcome{
    /* Fit the artwork to the width. Limit the text and footer to the visible height. */
    --v2-u:calc(100cqw / 1440);
    --v2-type-u:min(var(--v2-u),calc(100dvh / 929));
    position:fixed;
    inset:0;
    z-index:110;
    height:100dvh;
    overflow:clip;
    color:#fff;
  }
  .v2-welcome-content{
    display:grid;
    grid-template-rows:minmax(0,1fr) calc(119 * var(--v2-type-u));
    height:100%;
    background:#000;
  }
  /* The opposite translations move only the clipping edge, not the artwork. */
  .v2-welcome,.v2-welcome-content{
    transform:translateY(0);
    will-change:transform;
    transition:transform 150ms linear;
  }
  @media(prefers-reduced-motion:reduce){
    .v2-welcome,.v2-welcome-content{transition:none}
  }
  .v2-welcome-header,.v2-works-header nav{
    font-family:'Portfolio Nav','Hanken Grotesk V2',Arial,sans-serif;
    font-size:calc(30 * var(--v2-nav-u));
    font-weight:800;
    line-height:1.25;
    letter-spacing:-.03em;
  }
  .v2-welcome-header,.v2-welcome-footer{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    column-gap:var(--v2-gutter);
    padding-inline:var(--v2-margin);
  }
  .v2-welcome-header{
    position:absolute;
    inset-inline:0;
    top:var(--v2-nav-top);
    align-items:start;
    pointer-events:none;
  }
  .v2-welcome-header > a[href]{pointer-events:auto}
  .v2-welcome-header > :is(a,span){justify-self:start;mix-blend-mode:difference}
  .v2-welcome-header > :nth-child(1){grid-column:2 / 5;margin-inline-start:calc(-.5 * var(--v2-u))}
  .v2-welcome-header > :nth-child(2){grid-column:5 / 9}
  .v2-welcome-header > :nth-child(3){grid-column:9 / 12}
  .v2-welcome-header > :nth-child(4){grid-column:12;justify-self:end}
  .v2-welcome-media{position:relative;min-height:0;overflow:clip}
  .v2-welcome-art{
    position:relative;
    isolation:isolate;
    width:100%;
    aspect-ratio:16 / 9;
  }
  .v2-welcome-carousel{
    position:absolute;
    inset:0;
    overflow:hidden;
    background:#fff;
  }
  .v2-welcome-track{display:flex;width:100%;height:100%}
  .v2-welcome-slide{
    position:relative;
    flex:0 0 100%;
    min-width:0;
    background:#fff;
  }
  .v2-welcome-slide :is(img,video){
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .v2-welcome-video{position:absolute;inset:0;opacity:0}
  .v2-welcome-video[data-frame-ready]{opacity:1}
  .v2-welcome-advance{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:0;
    background:transparent;
    cursor:ew-resize;
  }
  .v2-welcome-advance[hidden]{display:none}
  .v2-welcome-advance:focus-visible{outline-color:#fff;outline-offset:-5px;mix-blend-mode:difference}
  .v2-welcome-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .v2-welcome-footer{
    position:relative;
    overflow:clip;
  }
  .v2-welcome-footer p{
    grid-column:2 / 8;
    align-self:start;
    width:calc(685 * var(--v2-type-u));
    margin-top:calc(20 * var(--v2-type-u));
    margin-inline-start:calc(.5 * var(--v2-u));
    font-size:calc(24 * var(--v2-type-u));
    font-weight:600;
    line-height:1.254446;
  }
  .v2-welcome-more{
    position:absolute;
    right:calc(-18 * var(--v2-type-u));
    bottom:calc(-57 * var(--v2-type-u));
    width:calc(361 * var(--v2-type-u));
    /* Compensate for the browser's trailing negative letter spacing. */
    padding-inline-end:.04em;
    text-align:right;
    font-size:calc(158.658691 * var(--v2-type-u));
    font-weight:900;
    letter-spacing:-.04em;
    line-height:calc(207 * var(--v2-type-u));
  }
  .v2-welcome-more:focus-visible{outline-color:#fff;outline-offset:-5px}
  .v2-welcome-more:hover{color:var(--v2-works-muted)}

  .v2-works{
    --v2-margin:22px;
    min-height:100dvh;
    padding:0 var(--v2-margin) calc(84.375 * var(--v2-u));
  }
  .v2-works-header{
    margin-inline:calc(-1 * var(--v2-margin));
    padding-inline:var(--v2-margin);
  }
  .v2-works-header nav{
    display:grid;
    grid-template-columns:calc((100% + var(--v2-gutter)) / 2) minmax(0,1fr) var(--v2-panel-width);
    align-items:start;
    height:calc(var(--v2-nav-top) + 37.5 * var(--v2-nav-u) + var(--v2-margin));
    padding-top:var(--v2-nav-top);
  }
  .v2-works-header :is(a,button){justify-self:start}
  .v2-works-header button{padding:0;background:none;cursor:pointer;letter-spacing:inherit}
  .v2-works-header :is(a,button):hover{color:var(--v2-works-muted)}
  .v2-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--v2-gutter)}
  .v2-card{
    --v2-reveal-remaining:1;
    --v2-band-inset:calc((100% - var(--v2-panel-width)) * var(--v2-reveal-remaining));
    --v2-description-inset:calc(100% * var(--v2-reveal-remaining));
    --v2-band-clip:inset(0 var(--v2-band-inset) 0 0);
    --v2-description-clip:inset(0 var(--v2-description-inset) 0 0);
    --v2-reveal-opacity:0;
    position:relative;
    min-width:0;
    isolation:isolate;
    background:#fff;
  }
  .v2-card-left{padding-left:var(--v2-panel-width)}
  .v2-card-right{
    --v2-band-clip:inset(0 0 0 var(--v2-band-inset));
    --v2-description-clip:inset(0 0 0 var(--v2-description-inset));
    padding-right:var(--v2-panel-width);
  }
  .v2-card:has(.v2-panel:focus-visible){
    --v2-reveal-remaining:0;
    --v2-reveal-opacity:1;
  }
  @media(hover:hover){
    .v2-card:has(:is(.v2-panel,.v2-information):hover){
      --v2-reveal-remaining:0;
      --v2-reveal-opacity:1;
    }
  }
  /* A single black layer spans the button and information so there is no seam. */
  .v2-card::before{
    content:'';
    position:absolute;
    inset:auto 0 0;
    height:var(--v2-panel-height);
    pointer-events:none;
    background:#000;
    clip-path:var(--v2-band-clip);
    transition:clip-path 420ms cubic-bezier(.22,.7,.25,1);
  }
  .v2-cover{position:relative;display:block;width:100%;aspect-ratio:16 / 9;background:#f4f4f4}
  button.v2-cover{border:0;padding:0;cursor:pointer}
  .v2-cover > img{display:block;width:100%;height:100%;object-fit:cover}
  .v2-cover-contain{background:#fff}
  .v2-cover-contain > img{object-fit:contain}
  .v2-cover > .moflin-video-frame{position:absolute;inset:0}
  .v2-cover .moflin-video-frame .moflin-video{object-fit:cover}
  .v2-information{
    position:relative;
    height:var(--v2-panel-height);
    padding-left:calc(4 * var(--v2-u));
  }
  .v2-meta{
    display:grid;
    grid-template-columns:minmax(0,1fr) fit-content(55%) minmax(0,1fr);
    margin-inline-start:calc(-4 * var(--v2-u));
    gap:calc(4 * var(--v2-u));
    font-size:calc(17 * var(--v2-u));
    font-weight:700;
    line-height:calc(22 * var(--v2-u));
    letter-spacing:-.04em;
  }
  .v2-meta h2{margin:0;padding-inline-start:calc(4 * var(--v2-u));font:inherit}
  .v2-meta p{color:var(--v2-works-muted);text-align:center}
  .v2-meta time{justify-self:end}
  .v2-meta :is(h2,time){color:#fff;mix-blend-mode:difference}
  .v2-meta :is(h2,p){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .v2-description{
    margin-top:calc(37 * var(--v2-u));
    font-size:calc(15 * var(--v2-u));
    font-weight:600;
    line-height:1.254446;
    color:#fff;
    clip-path:var(--v2-description-clip);
    opacity:var(--v2-reveal-opacity);
    transition:clip-path 420ms cubic-bezier(.22,.7,.25,1),opacity 240ms ease;
  }
  .v2-panel{
    position:absolute;
    bottom:0;
    width:var(--v2-panel-width);
    height:var(--v2-panel-height);
    overflow:clip;
    padding:0;
    background:transparent;
    color:#fff;
  }
  :is(a,button).v2-panel{cursor:pointer}
  .v2-card-left .v2-panel{left:0}
  .v2-card-right .v2-panel{right:0}
  .v2-panel:focus-visible{outline:2px solid #fff;outline-offset:-5px}
  .v2-panel span{
    position:absolute;
    top:calc(55 * var(--v2-u));
    width:calc(198 * var(--v2-u));
    text-align:right;
    font-size:calc(86.795 * var(--v2-u));
    font-weight:900;
    letter-spacing:-.04em;
    line-height:calc(113 * var(--v2-u));
  }
  .v2-panel :is(span,.project-soon){
    opacity:var(--v2-reveal-opacity);
    transition:opacity 240ms ease;
  }
  .v2-card-left .v2-panel span{left:calc(-9 * var(--v2-u))}
  .v2-card-right .v2-panel span{right:calc(-9 * var(--v2-u))}
  .v2-panel span:hover{color:var(--v2-works-muted)}
  .v2-panel .project-soon{
    position:absolute;
    bottom:0;
    left:0;
    width:calc(190 * var(--v2-u));
    height:auto;
  }

  @media(hover:none){
    .v2-card:not(:has(.v2-panel:focus-visible)) .v2-description{
      color:#000;
      clip-path:none;
      opacity:1;
    }
    .v2-panel :is(span,.project-soon){opacity:1}
  }
  @media(prefers-reduced-motion:reduce){
    .v2-card::before,.v2-description,.v2-panel :is(span,.project-soon){transition:none}
  }

  .v2-cover .v2-audio-icon{
    position:absolute;
    left:calc(100% + 7 * var(--v2-u));
    bottom:calc(.328 * var(--v2-u));
    width:calc(26.297 * var(--v2-u));
    height:calc(26.297 * var(--v2-u));
  }
  .v2-welcome-audio,.v2-cover .moflin-audio-toggle{
    inset:auto 8px 8px auto;
    width:44px;
    height:44px;
    transform:none;
    background-position:center;
    background-size:28px;
    filter:brightness(0) invert(1) drop-shadow(0 0 2px rgb(0 0 0 / .8));
  }
  .v2-detail{width:min(32rem,90vw);padding:2rem;background:#fff;color:#000}
  .v2-detail::backdrop{background:rgb(0 0 0 / .35)}
  .v2-detail form{display:flex;justify-content:flex-end}
  .v2-detail button{padding:0;background:none;text-decoration:underline;cursor:pointer}
}

/* Use the same navigation metrics and twelve-column tracks as case studies. */
@media (min-width:1000px) {
  .v2-works { --v2-nav-u:1px; --v2-nav-top:13px; }
  .v2-works-header nav {
    grid-template-columns:repeat(12,minmax(0,1fr));
    column-gap:26px;
  }
  .v2-works-header .v2-brand { grid-column:1 / 7; }
  .v2-works-header .v2-info { grid-column:7 / 11; }
  .v2-works-header .v2-contact { grid-column:11 / -1; }
}
